ERGO1995 commented on code in PR #31646:
URL: https://github.com/apache/superset/pull/31646#discussion_r2151647783
##########
superset-frontend/src/dashboard/components/gridComponents/Chart.jsx:
##########
@@ -428,6 +428,18 @@ const Chart = props => {
// eslint-disable-next-line camelcase
queriesResponse?.map(({ cached_dttm }) => cached_dttm) || [];
+ // Traduction of metrics and dimensions libella
+ if (formData?.groupbyColumns && Array.isArray(formData.groupbyColumns)) {
+ formData.groupbyColumns = formData.groupbyColumns.map(group =>
+ t(group, { fallback: group }),
Review Comment:
We are already using this code for our production. It translate your metric
if you have a string in the message.json file. You can pybabel extract/update
to extract string from customTrad.ts
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]