New issue
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
Strange warning messages 'Value of key '<<message>>' is not a string!' #201
Comments
You can avoid with |
Yep I added this:
|
Maybe it's a good point to add this use case in the documentation for Component based localization |
Here is the updated link for the specific option above. |
That seems to work, but it's a workaround, because it also silences real errros, I believe. This becomes an issue particularly when actively debugging, when these "errors" mix with real translation errors and you lose sight. Is it wrong to access global translation on a Component based approach? If so, why? |
Since 8.8 there is a |
Vue version: 2.4.2
vue-i18n version: 7.0.5
Hello,
I'm using both global messages
const i18n = new VueI18n({ locale: getCurrentUserLanguage(), messages });
and local, component based messages:
Everything works as expected.
But when I access global messages in the component that does have local, component-based messages, I get following warning:
I really don't like having bloated console, just to inform me about using fallback to global-translation.
And the warning message is kind of misleading.
Am I doing something wrong? If not, please consider removing this warning message for this particular use-case.
Thanks!
The text was updated successfully, but these errors were encountered: