page-assist/src/i18n/index.ts
n4ze3m 5678a0f8b2 feat: Add Korean language support
Add Korean language support to the application. This includes translating the necessary UI elements and adding Korean to the supported language list.
2024-11-10 19:34:38 +05:30

48 lines
1.1 KiB
TypeScript

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import { en } from "./lang/en";
import { pt } from "./lang/pt";
import { fr } from "./lang/fr";
import { ru } from "./lang/ru";
import { ml } from "./lang/ml";
import { zh } from "./lang/zh";
import { ja } from "./lang/ja";
import { it } from "./lang/it";
import { es } from "./lang/es";
import { fa } from "./lang/fa";
import { de } from "./lang/de";
import { da } from "./lang/da";
import { no } from "./lang/no";
import { sv } from "./lang/sv";
import { ko } from "./lang/ko";
i18n
.use(initReactI18next)
.init({
resources: {
en: en,
es: es,
fr: fr,
"it": it,
ml: ml,
"pt-BR": pt,
"zh-CN": zh,
ru: ru,
"ru-RU": ru,
zh: zh,
ja: ja,
"ja-JP": ja,
fa: fa,
"fa-IR": fa,
da: da,
no: no,
de: de,
sv: sv,
ko: ko,
},
fallbackLng: "en",
lng: localStorage.getItem("i18nextLng") || "en",
});
export default i18n;