translation into Russian #40702
Replies: 1 comment
-
|
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] [2]. Workaround: Add this to your 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_overridesThis explicitly injects the language pack for unauthenticated users so the login page renders in Russian immediately [1]. If you're using Docker, you may also need to rebuild the image with translation files included: docker build --build-arg BUILD_TRANSLATIONS=true -t superset:custom .A permanent fix for this race condition was merged in PR #36893 and should be available in a future release [1]. To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, why is my login page in English? Although when I log in and log out, it's in Russian. If I refresh the page with a cache reset, it returns to English.


How can I make the login page in Russian permanent?
Beta Was this translation helpful? Give feedback.
All reactions