lx-music-desktop/src/renderer/plugins/i18n.js

24 lines
330 B
JavaScript

/**
* Vue i18n
*
* @library
*
* http://kazupon.github.io/vue-i18n/en/
*/
// Lib imports
import { createI18n } from 'vue-i18n'
import { messages } from '@/lang'
const i18n = createI18n({
locale: 'zh-cn',
fallbackLocale: 'zh-cn',
allowComposition: true,
messages,
})
window.i18n = i18n.global
export default i18n