production-taskbar-client / src / renderer / app / locale / i18n.js
i18n.js
Raw
import i18n from "i18next";
import { initReactI18next } from "react-i18next";

import en from "./translations/en.json";
import uk from "./translations/uk.json";

export const defaultNS = "uk";

export const resources = {
  en: {
    en,
  },
  uk: {
    uk,
  },
};

i18n.use(initReactI18next).init({
  lng: "en",
  ns: ["uk", "en"],
  defaultNS,
  resources,
  fallbackLng: "uk",
});