init
This commit is contained in:
29
locale/index.js
Normal file
29
locale/index.js
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
import en from './en.json'
|
||||
import zhHans from './zh-Hans.json'
|
||||
import jp from './jp.json'
|
||||
// const messages = {
|
||||
// 'en': Object.assign(en, en1),
|
||||
// 'zh-Hans': Object.assign(zhHans, zhHans1),
|
||||
// 'jp': Object.assign(jp, jp1)
|
||||
// }
|
||||
const messages = {
|
||||
'en': en,
|
||||
'zh-Hans': zhHans,
|
||||
'jp': jp
|
||||
}
|
||||
|
||||
let i18nConfig = {
|
||||
silentTranslationWarn: true,
|
||||
locale: uni.getLocale(),
|
||||
messages
|
||||
}
|
||||
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
Vue.use(VueI18n)
|
||||
|
||||
const i18n = new VueI18n(i18nConfig)
|
||||
|
||||
export default i18n
|
||||
|
||||
Reference in New Issue
Block a user