Added a basic web UI
This commit is contained in:
19
client/src/i18n.ts
Normal file
19
client/src/i18n.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import i18n from "i18next";
|
||||
import detector from "i18next-browser-languagedetector";
|
||||
import Backend from "i18next-xhr-backend";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
i18n
|
||||
.use(Backend)
|
||||
.use(detector)
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
supportedLngs: ["en"],
|
||||
backend: {
|
||||
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
||||
},
|
||||
defaultNS: "common",
|
||||
fallbackLng: ["en"],
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
Reference in New Issue
Block a user