feat(i18n): enhance localization support with new languages(zh-tw/ja)

This commit is contained in:
beilunyang
2025-10-21 23:53:58 +08:00
parent 0c7a4d84a5
commit 7398b73f3f
20 changed files with 915 additions and 97 deletions
+8 -2
View File
@@ -1,6 +1,13 @@
export const locales = ['en', 'zh-CN'] as const
export const locales = ['en', 'zh-CN', 'zh-TW', 'ja'] as const
export type Locale = typeof locales[number]
export const LOCALE_LABELS: Record<Locale, string> = {
en: "English",
"zh-CN": "简体中文",
"zh-TW": "繁體中文",
ja: "日本語",
}
export const defaultLocale: Locale = 'en'
export const i18n = {
@@ -8,4 +15,3 @@ export const i18n = {
defaultLocale,
localePrefix: 'as-needed',
}