-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-i18next.config.js
38 lines (36 loc) · 1.1 KB
/
next-i18next.config.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
// i18n.js
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
i18n
.use(initReactI18next)
.init({
resources: {
en: {
translation: require('./public/locales/en/translation.json'), // English translation
},
he: {
translation: require('./public/locales/he/translation.json'), // Hebrew translation
},
es: {
translation: require('./public/locales/es/translation.json'), // Spanish translations
},
gsw: {
translation: require('./public/locales/gsw/translation.json'), // Swiss German translations
},
bar: {
translation: require('./public/locales/bar/translation.json'), // Austrian German translations
},
de: {
translation: require('./public/locales/de/translation.json'), // High German translations
},
pt: {
translation: require('./public/locales/pt/translation.json'),
},
},
lng: 'en', // Default language
fallbackLng: 'en',
interpolation: {
escapeValue: false, // React already does escaping
},
});
export default i18n;