GitHub user dosubot[bot] added a comment to the discussion: Multi Language 
support in superset

<!-- Answer -->
Superset provides partial support for multi-language UI translations through 
Flask-Babel, which allows for translating UI elements using functions like 
`gettext` and `lazy_gettext` in Python, and `t` and `tn` in 
TypeScript/JavaScript. However, translations are turned off by default due to 
incomplete and not well-maintained translations in most languages 
<sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/howtos.mdx)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset/config.py)</sup>.

For enabling multi-language support, you can configure both the backend and 
frontend. Backend configuration involves setting up Babel in 
`superset/config.py` and using `pybabel` commands to manage translation files. 
Frontend configuration requires building translations using npm commands 
<sup>[[3]](https://github.com/apache/superset/discussions/31444)</sup><sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/howtos.mdx)</sup>.

Regarding report content translation, there is no specific mechanism mentioned 
for translating report data itself. The focus is primarily on UI translations 
<sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/howtos.mdx)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/c30ee1ff-d082-4b5f-9540-9828cc2dfa00?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/superset/discussions/33537#discussioncomment-13204398

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to