This commit is contained in:
2026-02-06 15:10:17 +08:00
commit f011de4ef4
59 changed files with 16075 additions and 0 deletions

27
src/lang/index.ts Normal file
View File

@@ -0,0 +1,27 @@
import { createI18n } from 'vue-i18n'
// 中文 zh-cn
// 英文 en
// 自己的语言配置
import enLocale from './en'
import zhLocale from './zh-cn'
// 语言配置整合
const messages = {
ENGLISH: {
...enLocale
},
CHINESE_SIMPLIFIED: {
...zhLocale
}
}
// 创建 i18n
const i18n = createI18n({
legacy: false,
globalInjection: true, // 全局模式,可以直接使用 $t
locale: 'ENGLISH',
messages: messages
})
export default i18n