-
Notifications
You must be signed in to change notification settings - Fork 46
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
Issue with not supported browser locale #84
Comments
In my case the workaround works if I regiser the component globally and pass { lang: 'en' } options
|
Nice workaround but it's not a option for me to import it globally. |
Solved this issue by downgrade to "0.2.4" |
Does anyone have a real solution for this? I would not like to downgrade as I like the newer full-width layout on mobile devices. |
Well, I've solved this by removing globally passing lang options, i.e.
and pass
The main idea is to get
otherwise, we get max call stack, because |
is there any way to solve this issue besides switch language? |
If I set my browser language to some unsupported datepicker language e.g. Italian it will throw an error:

`RangeError: Maximum call stack size exceeded
You can reproduce this bug even on demo page: https://vue-datepicker.netlify.app/, just set you browser language to some unsupported one. Here is screenshot of the error:
Also, workaround to set locale to :locale="{lang: 'en'}" does not work for me as then date picker does not show dates:

Any other way I can force default locale to en?
The text was updated successfully, but these errors were encountered: