react-native-dates
react-native-dates copied to clipboard
Change language of calendar
Is there a way to change the calendar language to spanish for example?
Thanks
Basically setting up moment.js locale should work, please try this PR and let me know if it helped: https://github.com/werein/react-native-dates/pull/20
Hi, sorry for the delay on trying that, but I had been working on other parts of the app. I tried your PR but I had an exception thrown any time I tried to open the calendar, about the range function not being defined. I think the problem is about the different import from moment. The library is great, and as I only need one language, I currently did a local modification to support only spanish. When I can, I'll try to further review this. Thanks
try this : moment.locale('th')
Any solution yet???