Skip to content

locale prop is added to the component#45

Open
AndrewMosh wants to merge 1 commit intokush-agra:masterfrom
AndrewMosh:master
Open

locale prop is added to the component#45
AndrewMosh wants to merge 1 commit intokush-agra:masterfrom
AndrewMosh:master

Conversation

@AndrewMosh
Copy link

now you can change the language of your datepicker by using this prop

@kush-agra
Copy link
Owner

I think there might be a better way to do this

Probably don't need to import all lang's by default
a specific language module could be imported and passed as props

also the lang prop should be kept optional, what is the default language picked in this case?

@AndrewMosh
Copy link
Author

AndrewMosh commented Feb 10, 2023

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

@kush-agra
Copy link
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

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

Successfully merging this pull request may close these issues.

2 participants