lxp_Maxcess/i18n/index.ts
2025-04-09 18:55:14 +08:00

19 lines
406 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createI18n } from 'vue-i18n'
import { en } from './en'
import { cn } from './cn'
const message = {
cn: {
...cn,
},
en: {
...en,
},
}
var language = 'cn'
const i18n = createI18n({
locale: language, // 设置语言类型
legacy: false, // 如果要支持compositionAPI此项必须设置为false;
globalInjection: true, // 全局注册$t方法
messages: message,
})
export default i18n