update element use vue-i18n@6.x and other i18n docs

pull/5819/head
mario_ma 2017-07-11 11:39:58 +08:00 committed by 杨奕
parent 986c4a2127
commit 737885603f
2 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ const i18n = new VueI18n({
})
Vue.use(Element, {
i18n: key => i18n.t(key)
i18n: (key, value) => i18n.t(key. value)
})
new Vue({ i18n }).$mount('#app')
@ -138,7 +138,7 @@ const i18n = new VueI18n({
messages, // set locale messages
})
ElementLocale.i18n(key => i18n.t(key))
ElementLocale.i18n((key, value) => i18n.t(key, value))
```
## Import via CDN

View File

@ -114,7 +114,7 @@ const i18n = new VueI18n({
})
Vue.use(Element, {
i18n: key => i18n.vm._t(key)
i18n: (key, value) => i18n.vm._t(key, value)
})
new Vue({ i18n }).$mount('#app')
@ -150,7 +150,7 @@ const i18n = new VueI18n({
messages, // set locale messages
})
ElementLocale.i18n(key => i18n.t(key))
ElementLocale.i18n((key, value) => i18n.t(key, value))
```
## 通过 CDN 的方式加载语言文件