web-apps/apps/documenteditor/mobile/src/lib/i18n.js
2021-10-31 22:23:43 +03:00

20 lines
500 B
JavaScript

import i18n from 'i18next'
import {initReactI18next} from 'react-i18next'
import Fetch from 'i18next-fetch-backend'
i18n.use(initReactI18next)
.use(Fetch)
.init({
lng: Common.Locale.currentLang,
fallbackLng: Common.Locale.defaultLang,
escapeValue: false,
backend: {
loadPath: './locale/{{lng}}.json'
},
interpolation: { escapeValue: false },
react: {
useSuspense: false,
},
});
export default i18n;