Skip to content
Snippets Groups Projects
i18n.ts 404 B
Newer Older
GyDi's avatar
GyDi committed
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
GyDi's avatar
GyDi committed
import en from "@/locales/en.json";
import ru from "@/locales/ru.json";
GyDi's avatar
GyDi committed
import zh from "@/locales/zh.json";
GyDi's avatar
GyDi committed

const resources = {
  en: { translation: en },
  ru: { translation: ru },
GyDi's avatar
GyDi committed
  zh: { translation: zh },
};

i18n.use(initReactI18next).init({
  resources,
  lng: "en",
  interpolation: {
    escapeValue: false,
  },
});