no message

Former-commit-id: 694ab0627ae22ebc49f9b7ac4ad26887133a2c20
Former-commit-id: 3c2c1d3faed94dadfb529d6bcddbece7d2473fb2
Former-commit-id: 23eacc96aa022bf8b400b0f6420f2b37981c5e86
This commit is contained in:
李杨
2018-02-13 20:26:26 +08:00
parent 75174cb296
commit 2286ee78f7
2 changed files with 22 additions and 0 deletions

20
src/i18n/index.js Normal file
View 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: '你好、世界'
}
}
}
})