While poking at T383482 it looks like folks would like to be able to preview Data:.chart pages in their user language, and be able to override it with ?uselang=.
Supporting this is not super difficult, and is easier if we pass the locale param from the renderer out into a <wiki-chart lang="XX"> attribute. This is a small one-line change to each of the chart-renderer and Chart's client-side JS.
This would also provide the necessary backend support for making language localization overridable on an individual invocation basis within a page.
Acceptance criteria:
- <wiki-chart> wrapper element should have a lang attribute that matches its localization
- this allows any potential uses that don't match the surrounding page!
- ?uselang=XX should set the localization for the preview rendering on Data:.chart pages, as on Data:.tab pages
- the above should apply to both localized strings and formatting