mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-04 01:00:20 +00:00
feat(translations): add support for French, Galician, Indonesian, Japanese, Brazilian Portuguese, Romanian, and Ukrainian languages
This commit is contained in:
1 parent
3e082beb79
commit
58fd74df14
3 files changed
+43
-1
No files matched your search
@@ -34,6 +34,13 @@ export function LanguageSwitcher() {
|
||||
{ name: t("language.es-ES"), code: "es-ES" },
|
||||
{ name: t("language.de-DE"), code: "de-DE" },
|
||||
{ name: t("language.ta-IN"), code: "ta-IN" },
|
||||
{ name: t("language.fr"), code: "fr" },
|
||||
{ name: t("language.gl"), code: "gl" },
|
||||
{ name: t("language.id"), code: "id" },
|
||||
{ name: t("language.ja"), code: "ja" },
|
||||
{ name: t("language.pt_BR"), code: "pt_BR" },
|
||||
{ name: t("language.ro"), code: "ro" },
|
||||
{ name: t("language.uk"), code: "uk" },
|
||||
];
|
||||
|
||||
return (
|
||||
|
||||
+28
@@ -4,8 +4,15 @@ 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 frTranslation from "./locales/fr/translation.json";
|
||||
import glTranslation from "./locales/gl/translation.json";
|
||||
import idTranslation from "./locales/id/translation.json";
|
||||
import jaTranslation from "./locales/ja/translation.json";
|
||||
import ptBRTranslation from "./locales/pt_BR/translation.json";
|
||||
import roTranslation from "./locales/ro/translation.json";
|
||||
import ruTranslation from "./locales/ru/translation.json";
|
||||
import taTranslation from "./locales/ta/translation.json";
|
||||
import ukTranslation from "./locales/uk/translation.json";
|
||||
import zhCNTranslation from "./locales/zh-CN/translation.json";
|
||||
import zhTWTranslation from "./locales/zh-TW/translation.json";
|
||||
|
||||
@@ -25,12 +32,33 @@ const resources = {
|
||||
"es-ES": {
|
||||
translation: esTranslation,
|
||||
},
|
||||
fr: {
|
||||
translation: frTranslation,
|
||||
},
|
||||
gl: {
|
||||
translation: glTranslation,
|
||||
},
|
||||
id: {
|
||||
translation: idTranslation,
|
||||
},
|
||||
ja: {
|
||||
translation: jaTranslation,
|
||||
},
|
||||
pt_BR: {
|
||||
translation: ptBRTranslation,
|
||||
},
|
||||
ro: {
|
||||
translation: roTranslation,
|
||||
},
|
||||
"ru-RU": {
|
||||
translation: ruTranslation,
|
||||
},
|
||||
"ta-IN": {
|
||||
translation: taTranslation,
|
||||
},
|
||||
uk: {
|
||||
translation: ukTranslation,
|
||||
},
|
||||
};
|
||||
|
||||
const getStoredLanguage = () => {
|
||||
|
||||
@@ -97,7 +97,14 @@
|
||||
"de-DE": "Deutsch",
|
||||
"es-ES": "Español",
|
||||
"ru-RU": "Русский",
|
||||
"ta-IN": "தமிழ்"
|
||||
"ta-IN": "தமிழ்",
|
||||
"fr": "Français",
|
||||
"gl": "Galego",
|
||||
"id": "Bahasa Indonesia",
|
||||
"ja": "日本語",
|
||||
"pt_BR": "Português (Brasil)",
|
||||
"ro": "Română",
|
||||
"uk": "Українська"
|
||||
},
|
||||
"theme": {
|
||||
"light": "Light",
|
||||
|
||||
Reference in new issue
Block a user