源文件
This commit is contained in:
1935
locale/en.json
Normal file
1935
locale/en.json
Normal file
File diff suppressed because it is too large
Load Diff
18
locale/index.js
Normal file
18
locale/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import VueI18n from 'vue-i18n';
|
||||
import Vue from 'vue';
|
||||
|
||||
import zh from './zh.json';
|
||||
import en from './en.json';
|
||||
|
||||
let i18nConfig = {
|
||||
locale: uni.getLocale(),
|
||||
silentTranslationWarn: true,
|
||||
messages: {
|
||||
"zh": zh,
|
||||
"en": en
|
||||
}
|
||||
}
|
||||
Vue.use(VueI18n)
|
||||
const i18n = new VueI18n(i18nConfig)
|
||||
Vue.prototype._i18n = i18n
|
||||
export default i18n
|
||||
1917
locale/zh.json
Normal file
1917
locale/zh.json
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user