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.6.11, 8.22.2
https://codesandbox.io/s/hopeful-vaughan-9wyn3?file=/src/main.js
import Vue from "vue"; import VueI18n from "vue-i18n"; Vue.config.productionTip = false; Vue.use(VueI18n); const i18n = new VueI18n({ locale: "en", messages: { en: { message: { helloFromParent: "Hello From Parent", helloFromChild: "Hello From Child" } } } }); const Child = Vue.extend({ render(h) { return h("div", null, this.$t("message.helloFromChild")); } }); setTimeout(() => { const instance = new Child(); instance.$mount(); document.body.appendChild(instance.$el); }, 3000); new Vue({ i18n, render(h) { return h("div", null, this.$t("message.helloFromParent")); } }).$mount("#app");
Working normally.
console warns
[Vue warn]: Error in render: "TypeError: Cannot read property '_t' of undefined"
TypeError: Cannot read property '_t' of undefined
The text was updated successfully, but these errors were encountered:
VueI18n instance isn't set to Child. you need to set it to Child
VueI18n
Child
thanks!
Sorry, something went wrong.
No branches or pull requests
vue & vue-i18n version
2.6.11, 8.22.2
Reproduction Link
https://codesandbox.io/s/hopeful-vaughan-9wyn3?file=/src/main.js
Steps to reproduce
What is Expected?
Working normally.
What is actually happening?
console warns
[Vue warn]: Error in render: "TypeError: Cannot read property '_t' of undefined"
TypeError: Cannot read property '_t' of undefined
The text was updated successfully, but these errors were encountered: