import i18n from "i18next";
import { initReactI18next } from "react-i18next";

import csCommon from "./locales/cs/common.json";
import csSocial from "./locales/cs/social.json";
import csAuth from "./locales/cs/auth.json";

void i18n.use(initReactI18next).init({
  resources: {
    cs: {
      common: csCommon,
      social: csSocial,
      auth: csAuth,
    },
  },
  lng: "cs",
  fallbackLng: "cs",
  defaultNS: "common",
  ns: ["common", "social", "auth"],
  interpolation: { escapeValue: false },
  returnNull: false,
});

export default i18n;
