|
@@ -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 的方式加载语言文件
|