You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmessages={en: {test: "hello","test.link": "world",},};// 2. Create i18n instance with optionsconsti18n=createI18n({locale: "en",// set localefallbackLocale: "en",// set fallback locale
messages,// set locale messages// If you need to specify other options, you can set other options// ...});
In case above, as u can see our team is using the message key in form of "a.b.c.d", instead of nested object.
When we upgrade vue-i18n from v9.2.2 to latest version 9.8, we noticed a lots of breaking changes, which is expected according to the release notes.
But there is one issue cannot be explained. Error thrown when the message key end with "link", such as "test.link".
vue-i18n.js?v=a4320ed3:2863 Uncaught (in promise) TypeError: String.prototype.link called on null or undefined
at link (<anonymous>)
at evaluateMessage (vue-i18n.js?v=a4320ed3:2863:20)
at translate (vue-i18n.js?v=a4320ed3:2705:20)
at vue-i18n.js?v=a4320ed3:3662:46
at wrapWithDeps (vue-i18n.js?v=a4320ed3:3623:13)
at Proxy.t (vue-i18n.js?v=a4320ed3:3662:12)
Expected behavior
No error thrown.
"link" is not a keyword, it should be allowed to use.
Reporting a bug?
In case above, as u can see our team is using the message key in form of "a.b.c.d", instead of nested object.
When we upgrade vue-i18n from v9.2.2 to latest version 9.8, we noticed a lots of breaking changes, which is expected according to the release notes.
But there is one issue cannot be explained. Error thrown when the message key end with "link", such as "test.link".
Expected behavior
No error thrown.
"link" is not a keyword, it should be allowed to use.
Reproduction
https://stackblitz.com/edit/vitejs-vite-b9zukn?file=src%2FApp.vue
System Info
Screenshot
https://ibb.co/MVd2S4n
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: