no message
Former-commit-id: 694ab0627ae22ebc49f9b7ac4ad26887133a2c20 Former-commit-id: 3c2c1d3faed94dadfb529d6bcddbece7d2473fb2 Former-commit-id: 23eacc96aa022bf8b400b0f6420f2b37981c5e86
This commit is contained in:
20
src/i18n/index.js
Normal file
20
src/i18n/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
export default new VueI18n({
|
||||
locale: 'CN',
|
||||
messages: {
|
||||
en: {
|
||||
message: {
|
||||
hello: 'hello world'
|
||||
}
|
||||
},
|
||||
cn: {
|
||||
message: {
|
||||
hello: '你好、世界'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -1,6 +1,7 @@
|
||||
import Vue from 'vue'
|
||||
import App from './App'
|
||||
import router from './router'
|
||||
import i18n from './i18n'
|
||||
|
||||
import ElementUI from 'element-ui'
|
||||
import 'element-ui/lib/theme-chalk/index.css'
|
||||
@@ -45,6 +46,7 @@ Vue.config.productionTip = false
|
||||
new Vue({
|
||||
el: '#app',
|
||||
store,
|
||||
i18n,
|
||||
router,
|
||||
template: '<App/>',
|
||||
components: { App }
|
||||
|
||||
Reference in New Issue
Block a user