2024-07-29 08:45:26 +08:00

40 lines
753 B
TypeScript

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import en from "../../locales/en.json";
import fr from "../../locales/fr.json";
import hu from "../../locales/hu.json";
import ja from "../../locales/ja.json";
import ru from "../../locales/ru.json";
import tr from "../../locales/tr.json";
import zh from "../../locales/zh.json";
i18n.use(initReactI18next).init({
resources: {
EN: {
translation: en,
},
ZH: {
translation: zh,
},
FR: {
translation: fr,
},
JA: {
translation: ja,
},
RU: {
translation: ru,
},
TR: {
translation: tr,
},
HU: {
translation: hu,
},
},
lng: "EN",
fallbackLng: "EN",
});
export default i18n;