mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 00:40:21 +00:00
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.
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import i18n from "@/lib/i18n"
|
|
|
|
export const settingCoverageTypes: Record<number, string> = {
|
|
1: i18n.t("Coverages.Excludes"),
|
|
2: i18n.t("Coverages.Only"),
|
|
}
|
|
|
|
export const nezhaLang: Record<string, string> = {
|
|
"zh-CN": "简体中文(中国大陆)",
|
|
"zh-TW": "正體中文(台灣)",
|
|
"en-US": "English",
|
|
"ru-RU": "Русский",
|
|
"es-ES": "Español",
|
|
"de-DE": "Deutsch",
|
|
"ta-IN": "தமிழ்",
|
|
"it-IT": "Italiano",
|
|
"fr-FR": "Français",
|
|
"id-ID": "Bahasa Indonesia",
|
|
"ja-JP": "日本語",
|
|
"ro-RO": "Română",
|
|
"uk-UA": "Українська",
|
|
"gl-ES": "Galego",
|
|
}
|
|
|
|
export const wafBlockReasons: Record<number, string> = {
|
|
1: i18n.t("LoginFailed"),
|
|
2: i18n.t("BruteForceAttackingToken"),
|
|
3: i18n.t("BruteForceAttackingAgentSecret"),
|
|
4: i18n.t("BlockByUser"),
|
|
5: i18n.t("WAFBlockReasonTypeBruteForceOauth2"),
|
|
}
|
|
|
|
export const wafBlockIdentifiers: Record<number, string> = {
|
|
"-127": i18n.t("GrpcAuthFailed"),
|
|
"-126": i18n.t("APITokenInvalid"),
|
|
"-125": i18n.t("UserInvalid"),
|
|
"-124": i18n.t("BlockByUser"),
|
|
}
|