refactor(i18n): streamline localization for zh-CN and remove zh-HK

This commit is contained in:
2026-01-14 03:38:16 +07:00
parent 7b7996b36f
commit 09cdfa0be8
13 changed files with 91 additions and 1371 deletions

View File

@@ -1,20 +1,14 @@
import { createI18n } from "vue-i18n";
import ar from "./ar.json";
import enUS from "./en-US.json";
import zhCN from "./zh-CN.json";
import zhTW from "./zh-HK.json";
export type MessageSchema = typeof enUS;
export type MessageSchema = typeof zhCN;
const i18n = createI18n<MessageSchema, "en-US" | "zh-CN" | "zh-HK" | "ar">({
const i18n = createI18n<MessageSchema, "zh-CN">({
legacy: false,
locale: "zh-CN",
fallbackLocale: "en-US",
messages: {
"en-US": enUS,
"zh-CN": zhCN,
"zh-HK": zhTW,
"ar": ar,
},
});