GitHub user dosubot[bot] added a comment to the discussion: superset 5.0.0 translation is not available
<!-- Answer --> If you have messages.json, messages.mo, and messages.po in /app/superset/translations/fr/LC_MESSAGES/ but French translations still aren't working, here are the most likely causes and next steps: 1. **File validity**: Double-check that messages.json and messages.mo are not empty or malformed. Open them and confirm they contain actual translation data, not just empty objects or error messages. 2. **Frontend loading**: In your browser, open the developer tools (F12), go to the Network tab, and refresh the Superset UI. Look for requests to messages.json for 'fr' (or language pack loading errors). If you see 404 errors or "Failed to fetch language pack" messages, Superset is not finding or loading the file, which will cause a fallback to English. This can happen if the file is in the wrong location or if the frontend expects it elsewhere (for Superset 5.0.0, it should be in /app/superset/translations/fr/LC_MESSAGES/messages.json, not in static/assets/i18n) [source](https://github.com/apache/superset/issues/35330). 3. **superset_config.py**: Make sure your BABEL_DEFAULT_LOCALE and LANGUAGES config is being picked up by the running instance. The language picker in the UI should show French as an option, and the default locale should be set to "fr". If you use a variant (like fr_FR), you may need to add a bootstrap override in superset_config.py: ```python from superset.translations.utils import get_language_pack def override_bootstrap_locale(data): if data.get("locale") == "fr": data["locale"] = "fr" data["language_pack"] = get_language_pack('fr') return data COMMON_BOOTSTRAP_OVERRIDES_FUNC = override_bootstrap_locale ``` This ensures the frontend gets the correct language pack [source](https://github.com/apache/superset/issues/35330). 4. **Cache**: Superset caches translation files and bootstrap data. Try clearing your browser cache and restarting the Superset server/container to force a reload. 5. **Partial translations**: If only some UI elements are translated, your messages.po/messages.json may be missing keys for newer UI components or chart plugins. This is a known limitationātranslation coverage depends on the completeness of the .po file [source](https://github.com/apache/superset/discussions/34540). 6. **Logs**: Check the Superset server logs for any errors or warnings about loading language packs or i18n. If you check these and still have issues, please share any errors from the browser console or server logs, and confirm the contents of your translation files. This will help pinpoint whether it's a file, config, or runtime loading issue. <!-- 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/64958636-2970-4750-8595-6052ec8b3188?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/64958636-2970-4750-8595-6052ec8b3188?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/64958636-2970-4750-8595-6052ec8b3188?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/64958636-2970-4750-8595-6052ec8b3188?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/64958636-2970-4750-8595-6052ec8b3188?feedback_type=hallucination) | [Report š](https://app.dosu.dev/response-feedback/64958636-2970-4750-8595-6052ec8b3188?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/64958636-2970-4750-8595-6052ec8b3188?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)& nbsp;[](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/35959) GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832857 ---- 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]
