You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "dosubot[bot] (via GitHub)" <gi...@apache.org> on 2025/10/08 10:39:31 UTC

Re: [I] [6.0.0‑RC2] Partial Russian Translations [superset]

dosubot[bot] commented on issue #35569:
URL: https://github.com/apache/superset/issues/35569#issuecomment-3380905999

   <!-- Answer -->
   The partial Russian translations in Superset 6.0.0rc2 and master are a known regression linked to the switch to asynchronous language pack loading. This change can cause race conditions and locale mismatches, especially if the frontend requests a short locale code like `ru` but your translation files use `ru_RU`, resulting in missing translations or fallback to English. This issue affects multiple languages and is more noticeable in frontend React components like dashboards and chart controls [source](https://github.com/apache/superset/issues/34751).
   
   To work around this, add an override function to your `superset_config.py` that maps the short locale code to the full one and loads the correct language pack:
   
   ```python
   from superset.translations.utils import get_language_pack
   
   def override_bootstrap_locale(data):
       if data.get("locale") == "ru":
           data["locale"] = "ru_RU"
           data["language_pack"] = get_language_pack('ru_RU')
       return data
   
   COMMON_BOOTSTRAP_OVERRIDES_FUNC = override_bootstrap_locale
   ```
   
   Make sure your Docker build includes `BUILD_TRANSLATIONS=true` so Russian translations are actually built into the image [source](https://github.com/apache/superset/discussions/35312). After updating your config, rebuild frontend translations with `npm run build-translation`, recompile backend translations with `pybabel`, and restart the server.
   
   If you still see partial translations, check for locale mismatches, ensure your translation files are up to date, and verify that the override function is being executed. This workaround has resolved similar issues for other languages like Portuguese and Chinese [source](https://github.com/apache/superset/issues/34058).
   
   There is ongoing work to address the underlying race condition and improve translation loading, so keep an eye on future releases for a permanent fix [source](https://github.com/apache/superset/issues/34914).
   
   
   <!-- 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/d9a325c6-e959-4b6d-86a0-2010ead2459f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d9a325c6-e959-4b6d-86a0-2010ead2459f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d9a325c6-e959-4b6d-86a0-2010ead2459f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d9a325c6-e959-4b6d-86a0-2010ead2459f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d9a325c6-e959-4b6d-86a0-2010ead2459f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d9a325c6-e959-4b6d-86a0-2010ead2459f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d9a325c6-e959-4b6d-86a0-2010ead2459f?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=githu
 b)&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/issues/35569)


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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