mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-09-19 17:50:13 +00:00
feat(i18n): register ja, ro, uk, gl in language switcher
These four locales had translation files but were never wired into i18n resources or the nezhaLang dropdown, so users could not select them. Register ja-JP, ro-RO, uk-UA, gl-ES; missing keys fall back to en-US per the Weblate community-translation workflow.
This commit is contained in:
@@ -5,10 +5,14 @@ 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 frTranslation from "../locales/fr/translation.json"
|
||||||
|
import glTranslation from "../locales/gl/translation.json"
|
||||||
import idTranslation from "../locales/id/translation.json"
|
import idTranslation from "../locales/id/translation.json"
|
||||||
import itTranslation from "../locales/it/translation.json"
|
import itTranslation from "../locales/it/translation.json"
|
||||||
|
import jaTranslation from "../locales/ja/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"
|
||||||
|
|
||||||
@@ -43,6 +47,18 @@ const resources = {
|
|||||||
"id-ID": {
|
"id-ID": {
|
||||||
translation: idTranslation,
|
translation: idTranslation,
|
||||||
},
|
},
|
||||||
|
"ja-JP": {
|
||||||
|
translation: jaTranslation,
|
||||||
|
},
|
||||||
|
"ro-RO": {
|
||||||
|
translation: roTranslation,
|
||||||
|
},
|
||||||
|
"uk-UA": {
|
||||||
|
translation: ukTranslation,
|
||||||
|
},
|
||||||
|
"gl-ES": {
|
||||||
|
translation: glTranslation,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const getStoredLanguage = () => {
|
const getStoredLanguage = () => {
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ export const nezhaLang: Record<string, string> = {
|
|||||||
"it-IT": "Italiano",
|
"it-IT": "Italiano",
|
||||||
"fr-FR": "Français",
|
"fr-FR": "Français",
|
||||||
"id-ID": "Bahasa Indonesia",
|
"id-ID": "Bahasa Indonesia",
|
||||||
|
"ja-JP": "日本語",
|
||||||
|
"ro-RO": "Română",
|
||||||
|
"uk-UA": "Українська",
|
||||||
|
"gl-ES": "Galego",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const wafBlockReasons: Record<number, string> = {
|
export const wafBlockReasons: Record<number, string> = {
|
||||||
|
|||||||
Reference in New Issue
Block a user