[crawler_platform 삭제]
This commit is contained in:
25
ontology_platform/web/frontend/src/i18n.ts
Normal file
25
ontology_platform/web/frontend/src/i18n.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
import HttpBackend from "i18next-http-backend";
|
||||
|
||||
i18n
|
||||
.use(HttpBackend)
|
||||
.use(LanguageDetector)
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
fallbackLng: "en",
|
||||
ns: ["common", "pages"],
|
||||
defaultNS: "common",
|
||||
backend: {
|
||||
loadPath: "/static/locales/{{lng}}/{{ns}}.json",
|
||||
},
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
react: {
|
||||
useSuspense: false,
|
||||
},
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
Reference in New Issue
Block a user