mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-21 01:09:17 +08:00
16 lines
375 B
Go
16 lines
375 B
Go
import { createI18n } from 'vue-i18n';
|
||
import zh from './modules/zh';
|
||
import en from './modules/en';
|
||
|
||
const i18n = createI18n({
|
||
legacy: false, // 如果要支持 compositionAPI,此项必须设置为 false
|
||
locale: 'zh', // 设置语言类型
|
||
globalInjection: true, // 全局注册$t方法
|
||
messages: {
|
||
zh,
|
||
en,
|
||
},
|
||
});
|
||
|
||
export default i18n;
|