GitHub user dosubot[bot] added a comment to the discussion: translation file 
has not taken effect and the chart data is missing in the local language

<!-- Answer -->
For the table chart time comparison columns: only the "Main" (or 
"SUM(Metrics)") column label is localized via translation files; the other 
columns (#, △, %) use hardcoded symbols and cannot be globally customized 
through translation files. However, you can set custom names for these columns 
individually in the chart's "Customize columns" (column_config) UI, including 
hiding the symbol by setting `displayTypeIcon` to false 
[[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/TableChart.tsx)].

The issue where the "Main"/"SUM(Metrics)" column shows blank data in 
non-English languages is a bug: the frontend generates data keys using the 
translated label (e.g., "主 <metric>"), but the backend always sends data with 
keys like "Main <metric>". This mismatch causes the data to disappear when the 
UI language is not English 
[[source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/plugins/plugin-chart-table/src/transformProps.ts)].

For translation effectiveness: starting with Superset 5.0.0, Docker images must 
be built with `BUILD_TRANSLATIONS=true` for translations to work, especially 
for chart plugins. Make sure you edit `.po` files (not `.json`), run the 
translation build scripts, and confirm that all necessary translation keys are 
present in your language files. Some UI elements may remain untranslated if 
their keys are missing or hardcoded, which is a known limitation 
[[source](https://github.com/apache/superset/discussions/34540)].

If you need to avoid the symbols or want more control, use the per-column 
customization in the chart UI. For the missing data bug, the only workaround is 
to use English or avoid time comparison columns until the frontend-backend key 
contract is fixed.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/efb28a5b-bdf5-47fd-8dd4-4082d44deb01?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34588)

GitHub link: 
https://github.com/apache/superset/discussions/34588#discussioncomment-14029471

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to