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 2026/05/02 02:58:11 UTC
Re: [D] login page fails to load translation files [superset]
GitHub user dosubot[bot] edited a comment on the discussion: login page fails to load translation files
<!-- Answer -->
In Superset 6.0, there is no longer a /superset/language_pack/ endpoint for fetching translation files at runtime. Instead, language packs are bundled into the initial bootstrap data and injected into the frontend as part of the HTML payload. The frontend (see `preamble.ts`) loads translations from this preloaded data, not via an API call. If your setup or a legacy customization tries to fetch /superset/language_pack/, it will fail (often with a 404 or HTML response), causing the error you see and falling back to the default language. The @has_access decorator is not relevant here, since the endpoint doesn't exist in the current architecture. To resolve this, ensure your deployment uses the standard Superset 6.0 frontend and backend, which rely on bootstrap data for translations, not a separate endpoint. If you have custom code or configuration referencing /superset/language_pack/, it should be updated to align with the new approach.
[Reference: preamble.ts translation loading](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/preamble.ts)
<!-- 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=01001297-5855-4545-bf27-ac871f2400cf) [](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/34885#discussioncomment-14245897
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org