dosubot[bot] commented on issue #40999: URL: https://github.com/apache/superset/issues/40999#issuecomment-4691566334
<!-- Answer --> Hi @matheusvarela! I'm [Dosu](https://go.dosu.dev/dosubot) and I'm helping the Apache Superset team. This is a known scenario tracked in issue #39882 [[1]](https://github.com/apache/superset/issues/39882). The `@has_access` decorator on the `/language_pack/<lang>/` endpoint requires authentication, which prevents translations from loading on the login page (since the user isn't authenticated yet) [[2]](https://github.com/apache/superset/blob/d6188374b4fbd63949b01c413cbe102d5f84f7ce/superset/views/core.py#L905). The endpoint only serves static JSON translation files from the filesystem and doesn't expose sensitive data, so making it publicly accessible is a reasonable approach. A few workarounds that have been discussed: 1. **Remove `@has_access`** — as you've done. This is the simplest fix, though it hasn't been merged upstream yet. 2. **Grant permission to the Public role** — add the "can language pack Superset" permission to the Public role via the Security menu, which allows unauthenticated access without modifying code. 3. **Inject language packs via bootstrap** — use `COMMON_BOOTSTRAP_OVERRIDES_FUNC` in your Superset config to inject translations directly into the bootstrap payload, bypassing the endpoint entirely. Option 2 is likely the least-invasive workaround if you don't want to maintain a code patch. If you'd like to contribute a fix upstream, removing or relaxing the `@has_access` decorator on this endpoint would address both login page and embedded dashboard translation issues [[1]](https://github.com/apache/superset/issues/39882). <!-- 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=329d52ab-8514-403b-a087-e030870c513c) [](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) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
