mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-21 01:09:17 +08:00
17 lines
325 B
Go
17 lines
325 B
Go
import { createI18n } from 'vue-i18n';
|
|
import zh from './modules/zh';
|
|
import en from './modules/en';
|
|
|
|
const i18n = createI18n({
|
|
legacy: false,
|
|
locale: localStorage.getItem('lang') || 'zh',
|
|
globalInjection: true,
|
|
messages: {
|
|
zh,
|
|
en,
|
|
},
|
|
warnHtmlMessage: false,
|
|
});
|
|
|
|
export default i18n;
|