fix: the filename case issue with generate-i18n-locale add zh-hk (#463)

* fix: 补齐lang缺失的翻译

* FIX: ad-dz, ar-ma, ar-sa not work bug

* 補齊繁體中文翻譯

* Update generate-i18n-locale.ts

* feat: add Traditional Chinese ( Hong Kong)

* chore: en first

Signed-off-by: Innei <i@innei.in>

---------

Signed-off-by: Innei <i@innei.in>
Co-authored-by: Innei <i@innei.in>
This commit is contained in:
Jerry Wong
2024-09-18 21:36:10 +08:00
committed by GitHub
co-authored by Innei
parent 08774485b1
commit a2eeb253b3
21 changed files with 635 additions and 46 deletions
+3 -2
View File
@@ -1,5 +1,5 @@
const langs = ["en", "ja", "zh-CN", "zh-TW", "pt", "fr", "ar-DZ", "ar-SA", "ar-MA"]
export const currentSupportedLanguages = langs.sort()
const langs = ["ja", "zh-CN", "zh-TW", "pt", "fr", "ar-DZ", "ar-SA", "ar-MA", "zh-HK"]
export const currentSupportedLanguages = ["en", ...langs.sort()]
export const dayjsLocaleImportMap = {
en: ["en", () => import("dayjs/locale/en")],
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],
@@ -11,6 +11,7 @@ export const dayjsLocaleImportMap = {
["fr"]: ["fr", () => import("dayjs/locale/fr")],
["pt"]: ["pt", () => import("dayjs/locale/pt")],
["zh-TW"]: ["zh-tw", () => import("dayjs/locale/zh-tw")],
["zh-HK"]: ["zh-hk", () => import("dayjs/locale/zh-hk")],
}
export const ns = ["app", "common", "lang", "settings", "shortcuts"] as const
export const defaultNS = "app" as const