mirror of
https://github.com/Buriburizaem0n/nezha-dash-v1.git
synced 2026-11-05 01:10: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.es-ES"), code: "es-ES" },
|
||||||
{ name: t("language.de-DE"), code: "de-DE" },
|
{ name: t("language.de-DE"), code: "de-DE" },
|
||||||
{ name: t("language.ta-IN"), code: "ta-IN" },
|
{ 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 (
|
return (
|
||||||
|
|||||||
+28
@@ -4,8 +4,15 @@ import { initReactI18next } from "react-i18next";
|
|||||||
import deTranslation from "./locales/de/translation.json";
|
import deTranslation from "./locales/de/translation.json";
|
||||||
import enTranslation from "./locales/en/translation.json";
|
import enTranslation from "./locales/en/translation.json";
|
||||||
import esTranslation from "./locales/es/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 ruTranslation from "./locales/ru/translation.json";
|
||||||
import taTranslation from "./locales/ta/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 zhCNTranslation from "./locales/zh-CN/translation.json";
|
||||||
import zhTWTranslation from "./locales/zh-TW/translation.json";
|
import zhTWTranslation from "./locales/zh-TW/translation.json";
|
||||||
|
|
||||||
@@ -25,12 +32,33 @@ const resources = {
|
|||||||
"es-ES": {
|
"es-ES": {
|
||||||
translation: esTranslation,
|
translation: esTranslation,
|
||||||
},
|
},
|
||||||
|
fr: {
|
||||||
|
translation: frTranslation,
|
||||||
|
},
|
||||||
|
gl: {
|
||||||
|
translation: glTranslation,
|
||||||
|
},
|
||||||
|
id: {
|
||||||
|
translation: idTranslation,
|
||||||
|
},
|
||||||
|
ja: {
|
||||||
|
translation: jaTranslation,
|
||||||
|
},
|
||||||
|
pt_BR: {
|
||||||
|
translation: ptBRTranslation,
|
||||||
|
},
|
||||||
|
ro: {
|
||||||
|
translation: roTranslation,
|
||||||
|
},
|
||||||
"ru-RU": {
|
"ru-RU": {
|
||||||
translation: ruTranslation,
|
translation: ruTranslation,
|
||||||
},
|
},
|
||||||
"ta-IN": {
|
"ta-IN": {
|
||||||
translation: taTranslation,
|
translation: taTranslation,
|
||||||
},
|
},
|
||||||
|
uk: {
|
||||||
|
translation: ukTranslation,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const getStoredLanguage = () => {
|
const getStoredLanguage = () => {
|
||||||
|
|||||||
@@ -97,7 +97,14 @@
|
|||||||
"de-DE": "Deutsch",
|
"de-DE": "Deutsch",
|
||||||
"es-ES": "Español",
|
"es-ES": "Español",
|
||||||
"ru-RU": "Русский",
|
"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": {
|
"theme": {
|
||||||
"light": "Light",
|
"light": "Light",
|
||||||
|
|||||||
Reference in new issue
Block a user