Figures with dates exported to images always use the English locale

Hi,

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 ?

Thanks

1 Like