Skip to content
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

Datepicker locale #131

Open
5im-0n opened this issue Oct 21, 2024 · 2 comments
Open

Datepicker locale #131

5im-0n opened this issue Oct 21, 2024 · 2 comments
Labels
Priority: High Do it soon Status: Accepted This seems to be a good idea and someone should start working on it Type: Enhancement Improve something that's already there

Comments

@5im-0n
Copy link

5im-0n commented Oct 21, 2024

Is it possible to somehow configure the datepicker locale? Having the week start on sunday is making me crazy :)

I saw that vue2-datepicker supports locales[1], but am I right that at the moment there is no way to configure them with config.js?

[1]https://github.com/mengxiong10/vue2-datepicker?tab=readme-ov-file#internationalization

@jpmens
Copy link
Member

jpmens commented Oct 21, 2024

Having the week start on sunday is making me crazy

Many of us Europeans are very relieved the week starts on Monday!

@linusg
Copy link
Member

linusg commented Oct 21, 2024

am I right that at the moment there is no way to configure them with config.js?

Yes. I'll add an option once I get around to it, in the future we can add automatic detection with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo

@linusg linusg added Type: Enhancement Improve something that's already there Priority: High Do it soon Status: Accepted This seems to be a good idea and someone should start working on it labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High Do it soon Status: Accepted This seems to be a good idea and someone should start working on it Type: Enhancement Improve something that's already there
Projects
None yet
Development

No branches or pull requests

3 participants