locale prop is added to the component#45
Open
AndrewMosh wants to merge 1 commit intokush-agra:masterfrom
Open
Conversation
Owner
|
I think there might be a better way to do this Probably don't need to import all lang's by default also the lang prop should be kept optional, what is the default language picked in this case? |
Author
|
Hey! Thank you very much for the npm! it helped me a lot with my project. There was a problem with changing the language so I decided to customize it by adding the date locale. lang prop is optional, in case there's no lang prop the default is English. Sorry, the solution could have been better but i am kinda noob in React |
Owner
|
Oh no it's great thanks for the addition. it'll probably be very helpful to many, I'll find some time to go through the changes maybe refine them and add them to main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
now you can change the language of your datepicker by using this prop