-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
When numberFormats not specified for component, does not fallback to use numberFormat specified on VueI18n instance #168
Comments
Thank you for your reporting! Sorry, I forget fallback localization of DateTime and Numer. 😭 |
Is this issue fixed in 7.6.0? I have a similar combination, where some messages and the dateTimeFormats are defined when instantiating Although the component seems to render the global message correctly, I still get warnings for every globally defined translation key (message or dateTimeFormat) in the console:
|
Same here, The translation and formatting is working well but still i get: Just to note, I have the flag |
I receive the the same warnings when I use How can I disable this warnings? The flag The
|
Was there ever any update on this? I also have a similar problem as to @rudiba |
Same problem as @rudiba still occurs to me. |
Shouldn't the recently introduced |
I had the same issue with |
Versions
vue 2.2.6
vue-i18n 7.0.0
Bug description
I have component-based localization for my app. I initialize my VueI18n instance with both
messages
andnumberFormats
, and these are meant to be shared across the entire app. In only the individual components where I have specified additional component-specific translations, I can access these "shared"messages
but not the sharednumberFormats
.Example code
main.js
Apple.vue (has component-specific i18n;
$n(100, 'currency')
unexpectedly throws error)Banana.vue (does NOT have component-specific i18n; therefore
$n(100, 'currency')
works as expected)Error thrown when evaluating
$n(100, 'currency')
in Apple.vue:The text was updated successfully, but these errors were encountered: