This commit is contained in:
lyswhut
2022-10-29 11:36:35 +08:00
parent 66b965d9f7
commit e45cee6596
715 changed files with 57096 additions and 31771 deletions
-22
View File
@@ -1,22 +0,0 @@
/**
* 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',
messages,
})
window.i18n = i18n.global
export default i18n
+9
View File
@@ -0,0 +1,9 @@
import { createI18n, i18nPlugin, useI18n, I18n } from '@/lang'
window.i18n = createI18n()
export {
i18nPlugin,
useI18n,
I18n,
}