2022-10-31 00:37:42 +00:00
|
|
|
import i18n from 'i18next'
|
|
|
|
import { initReactI18next } from 'react-i18next'
|
|
|
|
import en from './Locales/en.json'
|
2022-10-29 13:38:04 +00:00
|
|
|
|
|
|
|
i18n.use(initReactI18next).init({
|
2022-10-30 15:24:12 +00:00
|
|
|
compatibilityJSON: 'v3',
|
2022-10-29 13:38:04 +00:00
|
|
|
fallbackLng: 'en',
|
|
|
|
resources: {
|
2022-10-31 01:23:27 +00:00
|
|
|
en,
|
2022-10-29 13:38:04 +00:00
|
|
|
},
|
|
|
|
ns: ['common'],
|
|
|
|
defaultNS: 'common',
|
|
|
|
debug: true,
|
|
|
|
interpolation: {
|
2022-10-31 01:23:27 +00:00
|
|
|
escapeValue: false,
|
|
|
|
},
|
2022-10-31 00:37:42 +00:00
|
|
|
})
|
2022-10-29 13:38:04 +00:00
|
|
|
|
2022-10-31 00:37:42 +00:00
|
|
|
export default i18n
|