1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-21 01:09:17 +08:00
1Panel/frontend/src/lang/index.ts
2022-08-17 09:37:30 +08:00

16 lines
375 B
Go
Raw 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 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;