GitHub user dosubot[bot] added a comment to the discussion: How to enable 
Chinese support for Superset deployed by Helm?

<!-- Greeting -->
Hi @shashihoushengqia! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping 
the superset team.

<!-- Answer -->
To enable Chinese language support for Superset deployed via Helm, set the 
environment variable `SUPERSET_LANG` to `zh` in your `values.yaml` under the 
`extraEnv` section. For example:

```yaml
extraEnv:
  SUPERSET_LANG: zh
```

If you find that the UI is still not in Chinese, recent Superset Docker images 
(5.0.0+) may not include translation files by default. In that case, you need 
to build your own Docker image with translations by adding the build argument 
`BUILD_TRANSLATIONS=true` during the build process. This ensures all language 
packs, including Chinese, are present in your image. See details 
[here](https://github.com/apache/superset/issues/34428).

For advanced locale control, you can use the `configOverrides` section in your 
`values.yaml` to add Python code that manipulates the locale or loads the 
correct language pack. Example patterns are shown 
[here](https://github.com/apache/superset/issues/34058).

Chinese translations are actively maintained and available in recent Superset 
versions, so once the above steps are complete, the UI should display in 
Chinese if the language pack is present in your image 
[source](https://github.com/apache/superset/pull/35187).


<!-- 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/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/5d686ac2-4091-4614-80d9-d6939eef4ce9?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=To%20enable%20Chinese%20language%20support%20for%20Superset%20deployed%20via%20Helm%2C%20set%20the%20environment%20variable%20%60SUPERSET_LANG%60%20to%20%60zh%60%20in%20your%20%60values.yaml%60%20under%20the%20%60extraEnv%60%20section.%20For%20example%3A%0A%0A%60%60%60yaml%0AextraEnv%3A%0A%20%20SUPERSET_LANG%3A%20zh%0A%60%60%60%0A%0AIf%20you%20find%20that%20the%20UI%20is%20still%20not%20in%20Chinese%2C%20recent%20Superset%20Docker%20images%20%285.0.0%2B%29%20may%20not%20include%20translation%20files%20by%20default.%20In%20that%20case%2C%20you%20need%20to%20build%20your%20own%20Docker%20image%20with%20translations%20by%20adding%20the%20build%20argument%20%60BUILD_TRANSLATIONS%3Dtrue%60%20during%20the%20build%20process.%20This%20ensures%20all%20language
 
%20packs%2C%20including%20Chinese%2C%20are%20present%20in%20your%20image.%20See%20details%20%5Bhere%5D%28https%3A//github.com/apache/superset/issues/34428%29.%0A%0AFor%20advanced%20locale%20control%2C%20you%20can%20use%20the%20%60configOverrides%60%20section%20in%20your%20%60values.yaml%60%20to%20add%20Python%20code%20that%20manipulates%20the%20locale%20or%20loads%20the%20correct%20language%20pack.%20Example%20patterns%20are%20shown%20%5Bhere%5D%28https%3A//github.com/apache/superset/issues/34058%29.%0A%0AChinese%20translations%20are%20actively%20maintained%20and%20available%20in%20recent%20Superset%20versions%2C%20so%20once%20the%20above%20steps%20are%20complete%2C%20the%20UI%20should%20display%20in%20Chinese%20if%20the%20language%20pack%20is%20present%20in%20your%20image%20%5Bsource%5D%28https%3A//github.com/apache/superset/pull/35187%29.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![S
 hare 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/37785)

GitHub link: 
https://github.com/apache/superset/discussions/37785#discussioncomment-15730774

----
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