fix(I18n): Translation supplement

Translation supplement, automatic lanSupplement the missing translations
This commit is contained in:
Colin
2024-11-30 13:04:34 +01:00
parent 5c0c358255
commit 63bb672ff1
8 changed files with 34 additions and 31 deletions

View File

@@ -1,16 +1,18 @@
import i18next from "i18next";
export const settingCoverageTypes: Record<number, string> = {
1: "All excludes specific servers",
2: "Only specific servers",
1: i18next.t("Coverages.Excludes"),
2: i18next.t("Coverages.Only"),
}
export const nezhaLang: Record<string, string> = {
"auto": i18next.t("Auto"),
"zh_CN": "简体中文(中国大陆)",
"zh_TW": "正體中文(台灣)",
"en_US": "English",
}
export const wafBlockReasons: Record<number, string> = {
1: "Login failed",
2: "Brute-force attacking token",
3: "Brute-force attacking Agent secret",
1: i18next.t("LoginFailed"),
2: i18next.t("BruteForceAttackingToken"),
3: i18next.t("BruteForceAttackingAgentSecret"),
}