react-horizontal-datepicker icon indicating copy to clipboard operation
react-horizontal-datepicker copied to clipboard

locale prop is added to the component

Open AndrewMosh opened this issue 2 years ago • 3 comments

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

AndrewMosh avatar Feb 07 '23 15:02 AndrewMosh

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?

kush-agra avatar Feb 10 '23 05:02 kush-agra

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

AndrewMosh avatar Feb 10 '23 12:02 AndrewMosh

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

kush-agra avatar Feb 14 '23 14:02 kush-agra