mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-14 06:30:49 +08:00
22 lines
373 B
TypeScript
22 lines
373 B
TypeScript
import { createI18n } from 'vue-i18n';
|
|
|
|
import enUS from './lang/en-US';
|
|
import zhCN from './lang/zh-CN';
|
|
|
|
const messages = {
|
|
'zh-CN': zhCN,
|
|
'en-US': enUS
|
|
};
|
|
|
|
const i18n = createI18n({
|
|
legacy: false,
|
|
locale: 'zh-CN',
|
|
fallbackLocale: 'en-US',
|
|
messages,
|
|
globalInjection: true,
|
|
silentTranslationWarn: true,
|
|
silentFallbackWarn: true
|
|
});
|
|
|
|
export default i18n;
|