Tinysymphony / react-native-calendar-select

A component to select period from calendar like Airbnb
MIT License
308 stars 97 forks source link

Localization of month names #13

Open feliperaul opened 6 years ago

feliperaul commented 6 years ago

As far as I could gather from the source code, the month names (i18n) are hardcoded? So no way of passing a customI18n props that has month names other then the supported languages (en / zh / jp) ?

danielzzz commented 5 years ago

the same question... thanks!

ryolay commented 4 years ago

I found the solution for changing month names,

The only thing you need to do is to go on the directory where the package is located. Like this :

Capture

and then, you find a file called "index.js", open this file.

Capture

Now, it's simple, you only need to change the "en" param months by the localization you want.

Regards

ryolay commented 4 years ago

It's not recommanded to edit a npm package but it's the only way I found for doing it :/