-
Notifications
You must be signed in to change notification settings - Fork 25
Fix/add locale option #43
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
Conversation
✅ Deploy Preview for uselessdev-datepicker ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
713ef0c
to
8904e68
Compare
@tomchentw thanks again. About the |
8904e68
to
660e9f7
Compare
@uselessdev I've updated the PR. Please review. If it's not too much trouble, would you mind cutting a release after merging this? Thank you 🙏 |
Yes, I'll make a new release 😊 |
@tomchentw I just published the new release https://github.com/uselessdev/datepicker/releases/tag/v2.4.0 |
Thank you! |
Closes #39 .
Notes
Good day, @uselessdev. Not until I tried to address #39 did I realize that the interfaces already have the
weekStartsOn
option. This PR adds thelocale
to the date-fn options along with some existingweekStartsOn
option. I'm not sure if you like this approach though so please feel free to ditch this PR.Although
date-fns
also supports specifyinglocale
andweekStartsOn
in the options in the same time, I personally prefer keeping only thelocale
option in the interface for simplicity. But this involves a breaking change so let's discuss it first.Pros and Cons of Keeping Only the
locale
Pros
Cons