no message

Former-commit-id: f8f9cdb7231f8a77fe9151b716611e6f38764d26
Former-commit-id: 7dc07e14f51ad5ecbfdbe4f34b4009323fefc87e
Former-commit-id: f26ca65e120f24930ecc0f0a510bf847356271c1
This commit is contained in:
李杨
2018-02-13 20:36:12 +08:00
parent 2286ee78f7
commit ac90f3cd28
3 changed files with 10 additions and 10 deletions

View File

@@ -6,15 +6,7 @@ Vue.use(VueI18n)
export default new VueI18n({
locale: 'CN',
messages: {
en: {
message: {
hello: 'hello world'
}
},
cn: {
message: {
hello: '你好、世界'
}
}
'CN': require('./lang/cn'),
'EN': require('./lang/en')
}
})

4
src/i18n/lang/cn.js Normal file
View File

@@ -0,0 +1,4 @@
export const message = {
language: '语言',
hello: '你好,世界'
}

4
src/i18n/lang/en.js Normal file
View File

@@ -0,0 +1,4 @@
export const message = {
language: 'language',
hello: 'hello world'
}