更新国际化支持

This commit is contained in:
jxxghp
2025-04-28 15:12:07 +08:00
parent 308a8ab30d
commit 6be4694327
9 changed files with 1450 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import { SUPPORTED_LOCALES, SupportedLocale } from '@/types/i18n'
// 导入语言文件
import zhCN from '@/locales/zh-CN'
import zhTW from '@/locales/zh-TW'
import enUS from '@/locales/en-US'
// 创建 i18n 实例
@@ -13,6 +14,7 @@ const i18n = createI18n({
fallbackLocale: 'zh-CN', // 回退语言
messages: {
'zh-CN': zhCN,
'zh-TW': zhTW,
'en-US': enUS,
},
silentTranslationWarn: true,