✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Figures with dates exported to images always use the English locale


I’m working with timeseries, ie. figures with dates for the xaxis. Plotly figures are rendered on a website using to_html and also exported to png images using write_image to be included in reports.

Our website is in French, and I have no problem getting the corresponding locale since the method to_html uses a specific keyword agument locale='fr'.

The problem is when I export figures to images using write_image. Here there is no locale argument and images always have English dates. How can I fix that ? Is there a hidden keyword or something ?