Add a Weblate component for the Chart Widget

Hello everyone,

As part of the upcoming deployment of Grist in my company in France, most of the interface elements have already been translated thanks to the work of the ANCT.

However, I noticed that the chart widget is still entirely in English.
Wishing to contribute actively to the improvement of the French version, I offered to help with its translation. However, it seems that this widget does not appear on Weblate, unlike, for instance, the calendar widget.

Would it be possible to add it to Weblate so that we can also work on translating it? This would really help non-English-speaking users get a better grasp of this very important tool in Grist.

Thank you very much in advance for your support!

Hi, thanks @Arthur for this motivation! On our side (French ANCT Grist team), we’re keen on working on it: initializing a project in Weblate, adding the translation module and functions, so that then you can add the translations. @GristLabs is this something you would be open to?

Yes, we’d be happy to have more i18n capabilities on the chart widget.

It already has some i18n in some related portions such as help strings or in the creator panel, but the widget itself is not Grist-made code. Most of the interface for the widget itself comes from Plotly.

Happily, Plotly already has i18n and l10n: plotly.js/dist at master · plotly/plotly.js · GitHub

It should not be too difficult to add locale information to how we configure Plotly: grist-core/app/client/components/ChartView.ts at 0edb969dbce86cbb2fbde6ae2de2cc76a61ebce3 · gristlabs/grist-core · GitHub

Any PR to make changes to Plotly or to other chart-related components will be most welcome.

2 Likes

Thanks for your response @JordiGH
I’ve submitted this PR:

As a first step, I think it makes sense to translate the configuration panel to make it more user-friendly.
This is the initial phase; the reconfiguration of Plotly will come later.