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