Skip to content

Commit ba20dc0

Browse files
committed
Add languages to config
- Spanish - German - French - Italian - Japanese - Russian - Portugese - Polish - Chinese (simplified)
1 parent 999b6af commit ba20dc0

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

src/i18n/i18n.ts

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,70 @@ import { PostProcessorModule } from 'i18next';
22
import i18n from 'i18next';
33
import { initReactI18next } from 'react-i18next';
44
import en from './locales/en.json';
5+
import es from './locales/es.json';
6+
import fr from './locales/fr.json';
7+
import ja from './locales/ja.json';
8+
import pl from './locales/pl.json';
9+
import zhHans from './locales/zh-Hans.json';
10+
import de from './locales/de.json';
11+
import it from './locales/it.json';
12+
import ru from './locales/ru.json';
13+
import ptBr from './locales/pt-BR.json';
514

615
const resources = {
716
en: { translation: en },
17+
es: { translation: es },
18+
de: { translation: de },
19+
it: { translation: it },
20+
ru: { translation: ru },
21+
'pt-BR': { translation: ptBr },
22+
fr: { translation: fr },
23+
ja: { translation: ja },
24+
pl: { translation: pl },
25+
'zh-Hans': { translation: zhHans },
826
};
927

1028
export const languages = [
1129
{
1230
label: 'English',
1331
value: 'en',
1432
},
33+
{
34+
label: 'Español',
35+
value: 'es',
36+
},
37+
{
38+
label: 'Deutsch',
39+
value: 'de',
40+
},
41+
{
42+
label: 'Français',
43+
value: 'fr',
44+
},
45+
{
46+
label: 'Italiano',
47+
value: 'it',
48+
},
49+
{
50+
label: '日本語',
51+
value: 'ja',
52+
},
53+
{
54+
label: 'Русский',
55+
value: 'ru',
56+
},
57+
{
58+
label: 'Português (Brasil)',
59+
value: 'pt-BR',
60+
},
61+
{
62+
label: 'Polski',
63+
value: 'pl',
64+
},
65+
{
66+
label: '简体中文',
67+
value: 'zh-Hans',
68+
},
1569
];
1670

1771
const lowerCasePostProcessor: PostProcessorModule = {

0 commit comments

Comments
 (0)