GitHub user dosubot[bot] added a comment to the discussion: How to change the Superset-UI page language to Chinese? I added the following configuration, but only some data is translated.
<!-- Answer --> Hi @MMM-Source! I'm [Dosu](https://go.dosu.dev/dosubot) and I'm helping the Apache Superset team. Your configuration looks correct, but partial translation is expected behavior — Superset's Chinese translation coverage is incomplete by design since it's community-maintained [[1]](https://github.com/apache/superset/issues/40207). That said, there are a couple of things you can check to maximize what *is* translated: **Ensure both backend and frontend translations are compiled.** Superset uses two separate translation pipelines [[2]](https://github.com/apache/superset/discussions/39334#discussioncomment-16552898): 1. **Backend** (Flask-Babel `.po` → `.mo`): ```bash pybabel compile -d superset/translations ``` 2. **Frontend** (`.po` → `.json`): ```bash npm run build-translation ``` If only the backend translations are compiled, the frontend UI strings will remain in English (and vice versa) [[3]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/scripts/po2json.sh#L20-L33). **If you're using Docker**, you can enable translation compilation during the build: ```bash BUILD_TRANSLATIONS=true docker compose up ``` [[4]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L124-L141) **Other tips:** - Make sure you're using `'zh'` consistently as the locale key — mismatches between `zh`, `zh_CN`, and `zh_TW` can cause lookup failures [[5]](https://github.com/apache/superset/issues/39163). - The `zh` translation file has ~14,600 entries [[6]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/translations/zh/LC_MESSAGES/messages.po), but not all strings are translated. Untranslated strings will fall back to English. Unfortunately, incomplete translation for non-English languages is a known limitation that Superset acknowledges — i18n is actually disabled by default for this reason [[7]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L401-L403). Contributing translations via the `.po` files is the way to improve coverage over time. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).* --- Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fsuperset). [](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fsuperset&message_id=a3673d4c-ca60-4fe5-bbb6-c29f1bbecee7) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fsuperset) GitHub link: https://github.com/apache/superset/discussions/41282#discussioncomment-17390821 ---- 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]
