This repository was archived by the owner on Apr 8, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathi18n.js
More file actions
39 lines (35 loc) · 1.33 KB
/
i18n.js
File metadata and controls
39 lines (35 loc) · 1.33 KB
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
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import translationAR from './public/locales/ar/common.json';
import translationDE from './public/locales/de/common.json';
import translationEN from './public/locales/en/common.json';
import translationES from './public/locales/es/common.json';
import translationFR from './public/locales/fr/common.json';
import translationIT from './public/locales/it/common.json';
import translationJA from './public/locales/ja/common.json';
import translationKO from './public/locales/ko/common.json';
import translationRU from './public/locales/ru/common.json';
import translationTR from './public/locales/tr/common.json';
import translationZH from './public/locales/zh/common.json';
i18n.use(initReactI18next).init({
resources: {
en: { common: translationEN },
fr: { common: translationFR },
es: { common: translationES },
de: { common: translationDE },
it: { common: translationIT },
ja: { common: translationJA },
ko: { common: translationKO },
tr: { common: translationTR },
zh: { common: translationZH },
ar: { common: translationAR },
ru: { common: translationRU },
},
lng: 'en',
fallbackLng: 'en',
ns: ['common'],
defaultNS: 'common',
interpolation: { escapeValue: false },
react: { useSuspense: false },
});
export default i18n;