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

firstDayOfWeek not working with smart localization #69

Open
depiction opened this issue May 3, 2016 · 3 comments
Open

firstDayOfWeek not working with smart localization #69

depiction opened this issue May 3, 2016 · 3 comments

Comments

@depiction
Copy link

I'm trying to change the first day of the week from Monday to Sunday.

In en.js I set firstDayOfWeek to 6 (for Sunday). The datepicker still shows Monday as the first day of the week.

If I explicitly include the en.js file before datepicker.js then reload the page, the first day of the week is set to Sunday.

The firstDayOfWeek setting cannot be changed if using the smart localization feature.

@ehoyt1
Copy link

ehoyt1 commented May 6, 2016

I too am having the same issue with the firstDayOfWeek setting in en.js not being called. I have tried setting the language in the <html> tag, as well as content-language <meta> tag on the page using the datepicker to see if the setting would be picked up.

@depiction
Copy link
Author

depiction commented May 6, 2016

For me the language files are loading based on the lang attribute on the html tag, but it's only reading strings. For example, if I add lang="fr" to the html tag, all strings within the date picker are French. Settings like firstDayOfWeek are ignored in favor of their default values.

@ehoyt1
Copy link

ehoyt1 commented May 6, 2016

Updated my previous comment. @depiction, I can't even get that far. From what I can see the en.js file isn't even being called. Do you mind posting some sample code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants