Skip to content

Commit 0e4986c

Browse files
committed
feat(i18n): add locales
1 parent f5c8131 commit 0e4986c

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/lib/i18n.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,34 @@ import itTranslation from "../locales/it/translation.json"
77
import ruTranslation from "../locales/ru/translation.json"
88
import zhCNTranslation from "../locales/zh-CN/translation.json"
99
import zhTWTranslation from "../locales/zh-TW/translation.json"
10+
import esTranslation from "../locales/es/translation.json"
11+
import taTranslation from "../locales/ta/translation.json"
1012

1113
const resources = {
14+
"zh-CN": {
15+
translation: zhCNTranslation,
16+
},
17+
"zh-TW": {
18+
translation: zhTWTranslation,
19+
},
1220
"en-US": {
1321
translation: enTranslation,
1422
},
15-
"it-IT": {
16-
translation: itTranslation,
17-
},
1823
"ru-RU": {
1924
translation: ruTranslation,
2025
},
21-
"zh-CN": {
22-
translation: zhCNTranslation,
23-
},
24-
"zh-TW": {
25-
translation: zhTWTranslation,
26+
"es-ES": {
27+
translation: esTranslation,
2628
},
2729
"de-DE": {
2830
translation: deTranslation,
2931
},
32+
"ta-IN": {
33+
translation: taTranslation,
34+
},
35+
"it-IT": {
36+
translation: itTranslation,
37+
},
3038
}
3139

3240
const getStoredLanguage = () => {

0 commit comments

Comments
 (0)