-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18nextConf.js
39 lines (36 loc) · 863 Bytes
/
i18nextConf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import i18n from 'i18next';
// import { initReactI18next } from 'react-i18next';
// import LanguageDetector from 'i18next-browser-languagedetector';
import translationEN from '@assets/locales/en/translation.json';
import translationUA from '@assets/locales/ua/translation.json';
import translationRU from '@assets/locales/ru/translation.json';
i18n
// .use(LanguageDetector)
// .use(initReactI18next)
.init({
resources: {
en: {
translation: translationEN
},
ua: {
translation: translationUA
},
ru: {
translation: translationRU
}
},
lng: 'ua',
fallbackLng: 'ua',
react: {
useSuspense: false
},
detection: {
checkWhitelist: true
},
keySeparator: '.',
debug: false,
interpolation: {
escapeValue: false
}
});
export default i18n;