From 892899d878db6e0f86fa5ae2e4ba1f6aa845b954 Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 30 Apr 2025 15:36:25 +0800 Subject: [PATCH] chore(desktop): remove support for zh-HK language and update resources - Removed "zh-HK" from the supported languages list in constants.ts. - Updated resources.ts to eliminate references to the "zh-HK" locale, streamlining language support. --- apps/desktop/layer/main/src/@types/constants.ts | 2 +- apps/desktop/layer/main/src/@types/resources.ts | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/desktop/layer/main/src/@types/constants.ts b/apps/desktop/layer/main/src/@types/constants.ts index 853148c27..bc16836b9 100644 --- a/apps/desktop/layer/main/src/@types/constants.ts +++ b/apps/desktop/layer/main/src/@types/constants.ts @@ -1,4 +1,4 @@ -const langs = ["en", "zh-CN", "zh-HK", "zh-TW", "ja"] as const +const langs = ["en", "zh-CN", "zh-TW", "ja"] as const export const currentSupportedLanguages = [...langs].sort() as string[] export type MainSupportedLanguages = (typeof langs)[number] diff --git a/apps/desktop/layer/main/src/@types/resources.ts b/apps/desktop/layer/main/src/@types/resources.ts index 6bad90d50..ed1fc2925 100644 --- a/apps/desktop/layer/main/src/@types/resources.ts +++ b/apps/desktop/layer/main/src/@types/resources.ts @@ -1,7 +1,6 @@ import en from "@locales/native/en.json" import ja from "@locales/native/ja.json" import zhCn from "@locales/native/zh-CN.json" -import zhHk from "@locales/native/zh-HK.json" import zhTw from "@locales/native/zh-TW.json" import type { MainSupportedLanguages, ns } from "./constants" @@ -13,9 +12,7 @@ export const resources = { "zh-CN": { native: zhCn, }, - "zh-HK": { - native: zhHk, - }, + "zh-TW": { native: zhTw, },