import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import en from "./translation/en.json";
import es from "./translation/es.json";
import fr from "./translation/fr.json";
import de from "./translation/de.json";

i18n.use(initReactI18next).init({
  resources: {
    en: {
      translation: en,
    },
    de: {
      translation: de,
    },
    fr: {
      translation: fr,
    },
    es: {
      translation: es,
    },
  },
  lng: "en",
  defaultNS: "translation",
  interpolation: {
    escapeValue: false,
  },
});
export default i18n;
