Commit 73788560 authored by mario_ma's avatar mario_ma Committed by 杨奕

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

parent 986c4a21
......@@ -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
......
......@@ -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 的方式加载语言文件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment