mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 12:40:08 +00:00
feat(i18n): add locales
This commit is contained in:
@@ -7,26 +7,34 @@ import itTranslation from "../locales/it/translation.json"
|
|||||||
import ruTranslation from "../locales/ru/translation.json"
|
import ruTranslation from "../locales/ru/translation.json"
|
||||||
import zhCNTranslation from "../locales/zh-CN/translation.json"
|
import zhCNTranslation from "../locales/zh-CN/translation.json"
|
||||||
import zhTWTranslation from "../locales/zh-TW/translation.json"
|
import zhTWTranslation from "../locales/zh-TW/translation.json"
|
||||||
|
import esTranslation from "../locales/es/translation.json"
|
||||||
|
import taTranslation from "../locales/ta/translation.json"
|
||||||
|
|
||||||
const resources = {
|
const resources = {
|
||||||
"en-US": {
|
|
||||||
translation: enTranslation,
|
|
||||||
},
|
|
||||||
"it-IT": {
|
|
||||||
translation: itTranslation,
|
|
||||||
},
|
|
||||||
"ru-RU": {
|
|
||||||
translation: ruTranslation,
|
|
||||||
},
|
|
||||||
"zh-CN": {
|
"zh-CN": {
|
||||||
translation: zhCNTranslation,
|
translation: zhCNTranslation,
|
||||||
},
|
},
|
||||||
"zh-TW": {
|
"zh-TW": {
|
||||||
translation: zhTWTranslation,
|
translation: zhTWTranslation,
|
||||||
},
|
},
|
||||||
|
"en-US": {
|
||||||
|
translation: enTranslation,
|
||||||
|
},
|
||||||
|
"ru-RU": {
|
||||||
|
translation: ruTranslation,
|
||||||
|
},
|
||||||
|
"es-ES": {
|
||||||
|
translation: esTranslation,
|
||||||
|
},
|
||||||
"de-DE": {
|
"de-DE": {
|
||||||
translation: deTranslation,
|
translation: deTranslation,
|
||||||
},
|
},
|
||||||
|
"ta-IN": {
|
||||||
|
translation: taTranslation,
|
||||||
|
},
|
||||||
|
"it-IT": {
|
||||||
|
translation: itTranslation,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const getStoredLanguage = () => {
|
const getStoredLanguage = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user