GitHub user dosubot[bot] added a comment to the discussion: "Select All" not translated in filter dropdowns despite correct translation setup
<!-- Greeting --> Hi @EceDalpolat! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The "Select All" string in filter dropdowns is now correctly wrapped with the translation function in recent Superset versions, so if it's still showing in English, it's usually due to one of these issues: 1. Your Superset version is older and does not include the fix (PR #35751). Make sure you're running a version from after this PR (July 2025 or later) where "Select All" is extracted for translation in the Select component. 2. The Turkish translation for "Select All" is missing or not present in your generated messages.json file. Double-check that your messages.po, messages.mo, and messages.json files contain the correct translation for "Select All" (case-sensitive). 3. The Docker image was not built with `BUILD_TRANSLATIONS=true`. Starting with Superset 5.0.0, translations are not included by default; you must build your image with this argument to generate and include translation files. If you see the language in the selector but not in the UI, this is often the cause. [details](https://github.com/apache/superset/issues/35959#issuecomment-3480977131) 4. There is a locale code mismatch (e.g., "tr" vs "tr_TR"). If your language selector uses "tr" but your translation files are under "tr_TR", add an override in superset_config.py to map the frontend locale to the backend language pack: ```python from superset.translations.utils import get_language_pack def override_bootstrap_locale(data): if data.get("locale") == "tr": data["locale"] = "tr" data["language_pack"] = get_language_pack('tr') return data COMMON_BOOTSTRAP_OVERRIDES_FUNC = override_bootstrap_locale ``` [example and explanation](https://github.com/apache/superset/discussions/35323#discussioncomment-14569885) 5. After making changes, rebuild your Docker image, restart containers, and clear your browser cache. Check the browser console for 404 errors when switching languages—these indicate missing or misconfigured translation files. If you follow these steps and "Select All" is still not translated, check that your translation files are valid (not empty), the language code matches everywhere, and that your user has permission to load language packs (non-admins may need the "can language pack superset" permission) [reference](https://github.com/apache/superset/issues/35569#issuecomment-3380905999). If you share your exact Superset version, I can confirm whether it includes the necessary fix. <!-- 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/23be9c00-322b-467c-9b01-df498f315092?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/23be9c00-322b-467c-9b01-df498f315092?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/23be9c00-322b-467c-9b01-df498f315092?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/23be9c00-322b-467c-9b01-df498f315092?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/23be9c00-322b-467c-9b01-df498f315092?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/23be9c00-322b-467c-9b01-df498f315092?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/23be9c00-322b-467c-9b01-df498f315092?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github) [](https://cursor.com/link/prompt?text=The%20%22Select%20All%22%20string%20in%20filter%20dropdowns%20is%20now%20correctly%20wrapped%20with%20the%20translation%20function%20in%20recent%20Superset%20versions%2C%20so%20if%20it%27s%20still%20showing%20in%20English%2C%20it%27s%20usually%20due%20to%20one%20of%20these%20issues%3A%0A%0A1.%20Your%20Superset%20version%20is%20older%20and%20does%20not%20include%20the%20fix%20%28PR%20%2335751%29.%20Make%20sure%20you%27re%20running%20a%20version%20from%20after%20this%20PR%20%28July%202025%20or%20later%29%20where%20%22Select%20All%22%20is%20extracted%20for%20translation%20in%20the%20Select%20component.%0A2.%20The%20Turkish%20translation%20for%20%22Select%20All%22%20is%20missing%20or%20not%20present%20in%20your%20generated%20messages.json%20file.%20Double -check%20that%20your%20messages.po%2C%20messages.mo%2C%20and%20messages.json%20files%20contain%20the%20correct%20translation%20for%20%22Select%20All%22%20%28case-sensitive%29.%0A3.%20The%20Docker%20image%20was%20not%20built%20with%20%60BUILD_TRANSLATIONS%3Dtrue%60.%20Starting%20with%20Superset%205.0.0%2C%20translations%20are%20not%20included%20by%20default%3B%20you%20must%20build%20your%20image%20with%20this%20argument%20to%20generate%20and%20include%20translation%20files.%20If%20you%20see%20the%20language%20in%20the%20selector%20but%20not%20in%20the%20UI%2C%20this%20is%20often%20the%20cause.%20%5Bdetails%5D%28https%3A//github.com/apache/superset/issues/35959%23issuecomment-3480977131%29%0A4.%20There%20is%20a%20locale%20code%20mismatch%20%28e.g.%2C%20%22tr%22%20vs%20%22tr_TR%22%29.%20If%20your%20language%20selector%20uses%20%22tr%22%20but%20your%20translation%20files%20are%20under%20%22tr_TR%22%2C%20add%20an%20override%20in%20superset_config.py%20to%20map%20the%20frontend%20locale%2 0to%20the%20backend%20language%20pack%3A%0A%0A%60%60%60python%0Afrom%20superset.translations.utils%20import%20get_language_pack%0A%0Adef%20override_bootstrap_locale%28data%29%3A%0A%20%20%20%20if%20data.get%28%22locale%22%29%20%3D%3D%20%22tr%22%3A%0A%20%20%20%20%20%20%20%20data%5B%22locale%22%5D%20%3D%20%22tr%22%0A%20%20%20%20%20%20%20%20data%5B%22language_pack%22%5D%20%3D%20get_language_pack%28%27tr%27%29%0A%20%20%20%20return%20data%0A%0ACOMMON_BOOTSTRAP_OVERRIDES_FUNC%20%3D%20override_bootstrap_locale%0A%60%60%60%0A%5Bexample%20and%20explanation%5D%28https%3A//github.com/apache/superset/discussions/35323%23discussioncomment-14569885%29%0A%0A5.%20After%20making%20changes%2C%20rebuild%20your%20Docker%20image%2C%20restart%20containers%2C%20and%20clear%20your%20browser%20cache.%20Check%20the%20browser%20console%20for%20404%20errors%20when%20switching%20languages%E2%80%94these%20indicate%20missing%20or%20misconfigured%20translation%20files.%0A%0AIf%20you%20follow%20these%20steps%20and%2 0%22Select%20All%22%20is%20still%20not%20translated%2C%20check%20that%20your%20translation%20files%20are%20valid%20%28not%20empty%29%2C%20the%20language%20code%20matches%20everywhere%2C%20and%20that%20your%20user%20has%20permission%20to%20load%20language%20packs%20%28non-admins%20may%20need%20the%20%22can%20language%20pack%20superset%22%20permission%29%20%5Breference%5D%28https%3A//github.com/apache/superset/issues/35569%23issuecomment-3380905999%29.%0A%0AIf%20you%20share%20your%20exact%20Superset%20version%2C%20I%20can%20confirm%20whether%20it%20includes%20the%20necessary%20fix.) [](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/discussions/36590) GitHub link: https://github.com/apache/superset/discussions/36590#discussioncomment-15240239 ---- 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]
