初始化项目模板
This commit is contained in:
1 parent
80fd6a1d4b
commit
b3a69a1f27
69 files changed
+11088
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import {
|
||||
createI18n
|
||||
} from 'vue-i18n'
|
||||
|
||||
import zhCn from './zh-cn.js'
|
||||
import zhTw from './zh-tw.js'
|
||||
|
||||
|
||||
const messages = {
|
||||
'zh-CN': zhCn,
|
||||
'zh-TW': zhTw,
|
||||
}
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false, // 使用CompotitionAPI必须添加这条.
|
||||
globalInjection: true,
|
||||
locale: 'zh-TW',
|
||||
messages
|
||||
})
|
||||
|
||||
export default i18n
|
||||
Reference in new issue
Block a user