text: import i18n from "i18next"
  import { initReactI18next } from "react-i18next"
  
  import translationEN from "./locales/en/translation.json"
  import translationIT from "./locales/it/translation.json"
  
  // the translations
  const resources = {
    en: translationEN,
    it: translationIT,
  }
  
  i18n
    .use(initReactI18next) // passes i18n down to react-i18next
    .init({
      resources,
      lng: "it",
      fallbackLng: "it", // use en if detected lng is not available
  
      keySeparator: false, // we do not use keys in form messages.welcome
  
      interpolation: {
        escapeValue: false, // react already safes from xss
      },
    })
  
  export default i18n
  