We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.3.9
1.9
2.5.17-beta.0
Molunerfinn/vue-koa-demo#32
你好,我参考了element test util.js ,我是这样引入i18n的 import i18n from '@/lang' Vue.use(Element, { size: 'medium', // set element-ui default size i18n: (key, value) => i18n.t(key, value) })
可是它报错了 信息为 ERROR LOG: TypeError: undefined is not an object (evaluating 'i18n._t') 改成 import i18n from '@/lang' Vue.use(i18n) 也是报这个错,百忙中求解答
期望正常test
ERROR LOG: TypeError: undefined is not an object (evaluating 'i18n._t')
The text was updated successfully, but these errors were encountered:
Translation of this issue:
Element UI version 2.3.9
OS/Browsers version One point nine
Vue version 2.5.17-beta.0
Reproduction Link Molunerfinn/vue-koa-demo#32
Steps to reproduce Hello, I refer to element test util.js. I introduced I18N in this way.
Import I18N from'@/lang' Vue.use (Element, {
Size:'medium', / / / set element-ui default size I18n: (key, value) = > i18n.t (key, value)
}) However, it reported the wrong information as ERROR LOG: TypeError: undefined is not an object (evaluating'i18n._t').
Change into Import I18N from'@/lang'
Vue.use (I18N) also reported this mistake and asked for answers in busy schedule. What is Expected?
Expected normal test What is actually happening?
ERROR LOG: TypeError: undefined is not an object (evaluating'i18n._t')
Sorry, something went wrong.
thanks
根据你给出的片段感觉是用法有问题,请仔细阅读文档 - 国际化获得帮助。如果确认不是用法问题而是可复现的 bug,请整理一个最小化可复现 demo。
No branches or pull requests
Element UI version
2.3.9
OS/Browsers version
1.9
Vue version
2.5.17-beta.0
Reproduction Link
Molunerfinn/vue-koa-demo#32
Steps to reproduce
你好,我参考了element test util.js ,我是这样引入i18n的
import i18n from '@/lang'
Vue.use(Element, {
size: 'medium', // set element-ui default size
i18n: (key, value) => i18n.t(key, value)
})
可是它报错了 信息为 ERROR LOG: TypeError: undefined is not an object (evaluating 'i18n._t')
改成
import i18n from '@/lang'
Vue.use(i18n) 也是报这个错,百忙中求解答
What is Expected?
期望正常test
What is actually happening?
ERROR LOG: TypeError: undefined is not an object (evaluating 'i18n._t')
The text was updated successfully, but these errors were encountered: