mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-09-20 18:20:13 +00:00
feat: add support for additional languages (#38)
* feat: add support for additional languages in LanguageSwitcher and translations * chore: auto-fix linting and formatting issues
This commit is contained in:
+16
@@ -1,7 +1,11 @@
|
||||
import i18n from "i18next"
|
||||
import { initReactI18next } from "react-i18next"
|
||||
|
||||
import deTranslation from "./locales/de/translation.json"
|
||||
import enTranslation from "./locales/en/translation.json"
|
||||
import esTranslation from "./locales/es/translation.json"
|
||||
import ruTranslation from "./locales/ru/translation.json"
|
||||
import taTranslation from "./locales/ta/translation.json"
|
||||
import zhCNTranslation from "./locales/zh-CN/translation.json"
|
||||
import zhTWTranslation from "./locales/zh-TW/translation.json"
|
||||
|
||||
@@ -15,6 +19,18 @@ const resources = {
|
||||
"zh-TW": {
|
||||
translation: zhTWTranslation,
|
||||
},
|
||||
"de-DE": {
|
||||
translation: deTranslation,
|
||||
},
|
||||
"es-ES": {
|
||||
translation: esTranslation,
|
||||
},
|
||||
"ru-RU": {
|
||||
translation: ruTranslation,
|
||||
},
|
||||
"ta-IN": {
|
||||
translation: taTranslation,
|
||||
},
|
||||
}
|
||||
|
||||
const getStoredLanguage = () => {
|
||||
|
||||
Reference in New Issue
Block a user