dosubot[bot] commented on issue #34531: URL: https://github.com/apache/superset/issues/34531#issuecomment-3150298647
<!-- Answer --> This is a known limitation in Superset 5.0.0: menu bar elements do not update their language dynamically when you switch languages via the flag icon. The menu data and translations are loaded once at page load as part of the initial bootstrap data, so a full browser reload is required for the menu items to appear in the new language. If the page isn't fully reloaded (for example, if SPA routing or a service worker intercepts the navigation), the menu will remain in the previous language even though other UI elements update. Dynamic language switching for the menu bar is not currently supported and is a recognized gap in Superset's i18n implementation, not a bug ([discussion](https://github.com/apache/superset/issues/32854), [code reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/views/base.py)). To ensure the menu updates, make sure the language switch triggers a full page reload. There are also workarounds for some locale issues (like pt_BR) that involve overriding the bootstrap locale function in `superset/config.py` and rebuilding frontend translations, but these do not enable true dynamic menu translation after the initial load ([example workaround](https://github.com/apache/superset/issues/34058)). The Superset maintainers are aware of this limitation, but a robust dynamic solution has not yet been prioritized. <!-- 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/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d279fda5-62c2-4fbf-ba7e-6311cf5c833b?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu b) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/34531) -- 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]
