Hello,
We are developing an AngularJS application using Plotly.js charts. The x axis on one of our charts displays dates:
These dates are passed to the chart in this format: 2022-11-01T06:01:00.000Z
.
One rule we have for our application is that all text needs to be translatable to other languages. So I’m wondering if Plotly.js has a property on the chart layout or data that tells it what language to translate dates to. Or to detect the region and translate the dates accordingly.
For example, here in North America, a date might be displayed as ‘Jan 2023’. But if I were in Russia, I would like to see ‘январь 2023’ (or whatever the shorthand is, if they use shorthand).
Note that I’m not asking for regional formatting. I could format the date with new Date(date).toLocaleDateString('ru-RU')
to get 01.11.2023
, but that’s not what I’m asking. I’m asking for the translation of month names and week day names.
Thanks!