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 { uk } from "./lang/uk";
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";
import { ar } from "./lang/ar"


i18n
    .use(initReactI18next)
    .init({
        resources: {
            en: en,
            es: es,
            fr: fr,
            "it": it,
            ml: ml,
            "pt-BR": pt,
            "zh-CN": zh,
            uk: uk,
            "uk-UA": uk,
            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,
            ar: ar
        },
        fallbackLng: "en",
        lng: localStorage.getItem("i18nextLng") || "en",
    });

export default i18n;