dm-web-react
Version:
The DM web client with React.
36 lines • 1.19 kB
JavaScript
import * as i18n from "i18next";
import * as LanguageDetector from "i18next-browser-languagedetector";
var instance = i18n.use(LanguageDetector).init({
// we init with resources
resources: {
en: {
app: {
"To get started, edit <1>src/App.js</1> and save to reload.": "To get started, edit <1>src/App.js</1> and save to reload.",
"Welcome to React": "Welcome to React and react-i18next",
},
page: {},
},
"zh-CN": {
app: {
"To get started, edit <1>src/App.js</1> and save to reload.": "Starte in dem du, <1>src/App.js</1> editierst und speicherst.",
"Welcome to React": "Willkommen bei React und react-i18next",
},
page: {},
},
},
fallbackLng: "en",
debug: true,
// have a common namespace used around the full app
ns: ["app"],
defaultNS: "app",
keySeparator: false,
interpolation: {
escapeValue: false,
formatSeparator: ",",
},
react: {
wait: true,
},
});
export default instance;
//# sourceMappingURL=i18n.js.map