zackify/react-calendar

Customizable days of week

paquirus opened this issue · 5 comments

It would be interesting to allow customize the days of week.
For example: change from "Sunday, Monday...." to "Domingo, Lunes...." or "dimanche, Lundi..."

I don't really know if it is possible on this release.

image

Have you tried using this pr and changing the locale? #5

Yeah. Im using the locale prop with "es" value. Let me show you some examples about this case.

When the calendar component size is "lg" (or laptop screen size), the locale prop works with the month into Nav component. check it out
image

here the code
image

But, when i apply zoom (175%) in google chrome, the calendar changed to mobile or tablet size (i don't know, but it is nice), the locale is applied. Check it out
image

Thanks for the info! I must have missed passing in the locale to one place on the desktop view. I will fix and release today

Please install 0.2.0-beta2 I have fixed the week day names and added a test to make sure

Fixed