GitHub user dosubot[bot] added a comment to the discussion: translation into Russian
<!-- Answer --> This is a known issue where the login page reverts to English even when your locale is configured for Russian. It happens because the frontend renders before the language pack finishes loading asynchronously [[1]](https://github.com/apache/superset/issues/38178) [[2]](https://github.com/apache/superset/discussions/39170). **Workaround:** Add this to your `superset_config.py` to force the Russian language pack on the login page: ```python from superset.translations.utils import get_language_pack BABEL_DEFAULT_LOCALE = "ru" def bootstrap_overrides(bootstrap_data): bootstrap_data["locale"] = "ru" bootstrap_data["language_pack"] = get_language_pack("ru") return bootstrap_data COMMON_BOOTSTRAP_OVERRIDES_FUNC = bootstrap_overrides ``` This explicitly injects the language pack for unauthenticated users so the login page renders in Russian immediately [[1]](https://github.com/apache/superset/issues/38178). **If you're using Docker**, you may also need to rebuild the image with translation files included: ```bash docker build --build-arg BUILD_TRANSLATIONS=true -t superset:custom . ``` [[2]](https://github.com/apache/superset/discussions/39170) A permanent fix for this race condition was merged in [PR #36893](https://github.com/apache/superset/pull/36893) and should be available in a future release [[1]](https://github.com/apache/superset/issues/38178). <!-- 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).* --- Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-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=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=878d350f-e22e-4d60-b681-16c6f84aadcc) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-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=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset) GitHub link: https://github.com/apache/superset/discussions/40702#discussioncomment-17161071 ---- 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]
