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
Notice that the select box has en_US but there is no such locale. There is en-US.
I'm not sure where en_US is used in your example, if you want to make sure only existing locales are used you could use the availableLocales property to either limit the options or check if the selected option is included.
Notice that the select box has en_US but there is no such locale. There is en-US.
As for why it's possible to set the locale without it throwing an error, I'm not sure, perhaps there are use cases in which this would be fine? 😅
May be it is falling back to the first default language, right now I do not have 3 languages to test. It should at least write some console.log(...) or something.
Clear and concise description of the problem
Quasar 2.x
In
src/boot/i18n.js
we havein
layouts/MainLayout.vue
we haveNotice that the select box has
en_US
but there is no such locale. There isen-US
.Suggested solution
Error should be triggered when user tries to set invalid, unavailable locale.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: