🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Changing calendar's langage to french

Hello,

So i am using DatePickerRange and I am wondering if there is a way to set the calendar to french (for the months and days of the week). Or maybe how to customize the calendar so I can modify what It shows.

Thanks a lot.

Hello @amine456, the DataPickerRange in dcc is wrapped from airbnb’s react-dates
https://github.com/airbnb/react-dates, as you can read from their README, there is a section about Localization, but it’s only for date, full translation needs extra efforts, which is not included.

If the `moment.locale(‘fr’) hack cannot answer your request, another way is to find another react-component like this one http://adphorus.github.io/react-date-range/, and wrap a dash component by yourself https://dash.plot.ly/plugins. :slight_smile: