mistercrunch commented on code in PR #31646:
URL: https://github.com/apache/superset/pull/31646#discussion_r2150780743
##########
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:
I'm not sure if calling `t(anyVariable)` works (?) From my understanding,
`t()` only works with static strings as babel does static analysis to
inventorize the strings for translations (?)
--
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]