text: import i18n from 'i18next';
  import { initReactI18next } from 'react-i18next';
  import en from '../locale/en';
  import fr from '../locale/fr';
  
  i18n.use(initReactI18next).init({
    resources: {
      en,
      fr,
    },
    fallbackLng: 'en',
    // debug only when not in production
    debug: process.env.NODE_ENV !== 'production',
    ns: ['translations'],
    defaultNS: 'translations',
    keySeparator: false,
    interpolation: {
      escapeValue: false,
      formatSeparator: ',',
    },
    react: {
      wait: true,
    },
  });
  
  export default i18n;
  