123456789101112131415161718192021222324252627 |
- import i18n from 'i18next'
- import { reactI18nextModule } from 'react-i18next'
- import fr from './translate/fr.js'
- import en from './translate/en.js'
-
- i18n
- .use(reactI18nextModule)
- .init({
- fallbackLng: 'fr',
- // have a common namespace used around the full app
- ns: ['translation'], // namespace
- defaultNS: 'translation',
- debug: true,
- // interpolation: {
- // escapeValue: false, // not needed for react!!
- // },
- react: {
- wait: true
- },
- resources: {
- en,
- fr
- }
- })
-
- export default i18n
|