Explorar o código

Update vue-i18n@6x support

i18n returns renderSlot (vm._t) function instead i18n.t
https://kazupon.github.io/vue-i18n/en/api.html
Adrian %!s(int64=8) %!d(string=hai) anos
pai
achega
78045b5c20
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/docs/en-US/i18n.md

+ 1 - 1
examples/docs/en-US/i18n.md

@@ -102,7 +102,7 @@ const i18n = new VueI18n({
 })
 
 Vue.use(Element, {
-  i18n: key => i18n.vm._t(key)
+  i18n: key => i18n.t(key)
 })
 
 new Vue({ i18n }).$mount('#app')