You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "jpchev (via GitHub)" <gi...@apache.org> on 2026/07/29 22:41:19 UTC

[D] superset 5.0.0 translation is not available [superset]

GitHub user jpchev created a discussion: superset 5.0.0 translation is not available

### Bug description

hello, I use this docker file to build my superset container, it's based on the 5.0.0,
I need the french translation, but it's not clear at all how to get it.

I tried to build the frontend on my machine starting from the git code, but that doesn't work.
I think it's very important to have a well documented procedure to get a specific translation. Moving from 4.1.2 to 5.0.0 it's a big pain, since I've lost the translation and don't know how to get it back

```
# change this to apache/superset:5.0.0 or whatever version you want to build from;
# otherwise the default is the latest commit on GitHub master branch
FROM apache/superset:5.0.0

USER root

ARG BUILD_TRANSLATIONS=true

# backend
COPY translations/fr/LC_MESSAGES/messages.po /app/superset/translations/fr/LC_MESSAGES/messages.po
# frontend
COPY translations/fr/LC_MESSAGES/messages.json /app/superset/static/assets/i18n/fr.json

# Set environment variable for Playwright
ENV PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers

# Install packages using uv into the virtual environment
RUN . /app/.venv/bin/activate && \
    uv pip install \
    # install psycopg2 for using PostgreSQL metadata store - could be a MySQL package if using that backend:
    psycopg2-binary \
    # add the driver(s) for your data warehouse(s), in this example we're showing for Microsoft SQL Server:
    pymssql \
    # package needed for using single-sign on authentication:
    Authlib \
    # openpyxl to be able to upload Excel files
    openpyxl \
    # Pillow for Alerts & Reports to generate PDFs of dashboards
    Pillow \
    # install Playwright for taking screenshots for Alerts & Reports. This assumes the feature flag PLAYWRIGHT_REPORTS_AND_THUMBNAILS is enabled
    # That feature flag will default to True starting in 6.0.0
    # Playwright works only with Chrome.
    # If you are still using Selenium instead of Playwright, you would instead install here the selenium package and a headless browser & webdriver
    playwright \
    && playwright install-deps \
    && PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers playwright install chromium

COPY superset_config.py /app/pythonpath/

# Switch back to the superset user
USER superset

CMD ["/app/docker/entrypoints/run-server.sh"]
```

### Screenshots/recordings

_No response_

### Superset version

5.0.0

### Python version

3.9

### Node version

16

### Browser

Chrome

### Additional context

_No response_

### Checklist

- [X ] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [ X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

GitHub link: https://github.com/apache/superset/discussions/42585

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
GitHub user rusackas added a comment to the discussion: superset 5.0.0 translation is not available

Opened #42586 for the docs update, documents @dawagner's custom-image pattern and clarifies that `BUILD_TRANSLATIONS` only does anything on a from-source build.


GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832944

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "RyanAccuWebCloud (via GitHub)" <gi...@apache.org>.
GitHub user RyanAccuWebCloud added a comment to the discussion: superset 5.0.0 translation is not available

To fix the French translation issue in Superset 5.0.0:

1. Check Translation Files: Ensure the paths for messages.po (backend) and messages.json (frontend) are correct.
2. Verify the BUILD_TRANSLATIONS Argument: Ensure it's being passed correctly during the build process.
3. Manually Build Translations: Try manually building translation files with pybabel for the backend and verify frontend assets.
4. Confirm Language in superset_config.py: Ensure French is selected as the default language.
5. Check Logs: Review container logs for errors related to translations.
6. Optional: If urgent, consider reverting to Superset 4.1.2 until the issue is fixed in 5.0.0.

For more flexibility and support, visit AccuWeb Cloud , they provide good support and excellent services
.

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832851

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
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>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](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 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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "jpchev (via GitHub)" <gi...@apache.org>.
GitHub user jpchev added a comment to the discussion: superset 5.0.0 translation is not available

@dosu I've copied the files your mentioned to my container, the translation is still not working

/app$ ls /app/superset/translations/fr/LC_MESSAGES/
messages.json  messages.mo  messages.po


GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832856

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: superset 5.0.0 translation is not available

<!-- Answer -->
This is a known issue in Superset 5.0.0: even with `BUILD_TRANSLATIONS=true`, the translation build scripts have a bug that prevents the French translation files from being generated and included in the image. Specifically, the script that generates frontend translations uses an invalid `find` command, so it finds zero `.po` files and produces no `.json` or `.mo` files. The backend compilation step also suppresses errors, so failures are silent and the directory ends up empty—even if your config is correct and the source files exist. This is a regression in the Docker build process, not a misconfiguration on your part.  
[Reference](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L27-L209)

**Workaround:**  
Until this is fixed upstream, you can manually generate the translation files on your machine and copy them into your image:

1. On your host, in the Superset repo, run:
   ```bash
   pybabel compile -d superset/translations
   cd superset-frontend
   npm install
   npm run build-translation
   ```
2. Copy the resulting `messages.mo` and `messages.json` files for French into your Docker build context.
3. In your Dockerfile, copy them into `/app/superset/translations/fr/LC_MESSAGES/` after the build steps.

This will ensure the files are present and translations work as expected.


<!-- 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/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b1a01dfc-7ba2-434e-9e12-fe06d7c067fd?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](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-17832855

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: superset 5.0.0 translation is not available

<!-- Answer -->
French translations are supported in Superset 5.0.0, but they are not included in the default Docker image to reduce size and build time. To enable French (or any other non-English) translations, you need to build your own Docker image with the build argument `BUILD_TRANSLATIONS=true`. This triggers the build process to compile backend translations and generate frontend translation JSON files from the .po sources, making them available to the application. You do not need to manually copy messages.json files—these are generated during the build process from the .po files.

The translation files are located at `superset/translations/fr/LC_MESSAGES/messages.po` for the backend, and the frontend JSON files are generated from these using the build scripts. If you want translations in your build, set the Docker build argument and let the build process handle the rest. This change was introduced in 5.0.0 to reduce image bloat; translations are now opt-in for Docker builds. For more details, see the [UPDATING.md notes](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md#L45-L612) and [Dockerfile implementation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L26-L209).

If you build your image with `BUILD_TRANSLATIONS=true`, French translations should be available and work as expected.


<!-- 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/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c3946c41-6300-4c8c-bde4-fd963fa3d279?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](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-17832850

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "SilentPresences (via GitHub)" <gi...@apache.org>.
GitHub user SilentPresences added a comment to the discussion: superset 5.0.0 translation is not available

I agree with [jpchev](https://github.com/jpchev) in this, we are experiencing the same difficulties. this should be included in a distinct image. I suggest adding a build label like "standard" or "default" or something like that. This will make sure the images we now know as "lean" will still be what we expect. The only thing this new label will change is enabling BUILD_TRANSLATIONS. In the future other features can be added back into this image, like the postgres driver if needed.

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832859

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
GitHub user rusackas added a comment to the discussion: superset 5.0.0 translation is not available

This one's really a product tradeoff question (do we bundle all translations by default, given the size cost) rather than a bug, so moving it to a Discussion. In the meantime the docs could probably be clearer about the `BUILD_TRANSLATIONS` build arg and the custom-image pattern @dawagner posted above, happy to review a docs PR for that.

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832863

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "dawagner (via GitHub)" <gi...@apache.org>.
GitHub user dawagner added a comment to the discussion: superset 5.0.0 translation is not available

Here's how I solved this: at the end of the official Dockerfile, I added:

```
FROM apachesuperset.docker.scarf.sh/apache/superset:5.0.0 AS my-custom-image
USER root

# copy translation files
COPY --from=superset-node /app/superset/translations superset/translations
COPY --from=python-translation-compiler /app/translations_mo superset/translations

USER superset
```

btw, I also seized the opportunity to add some optional dependencies, such as database drivers, like so (before `USER superset`):

```
# install dependencies needed for postgres support
# inspired by  - flatly copy-pasted from, I should say -  the `lean` build stage
RUN --mount=type=cache,target=${SUPERSET_HOME}/.cache/uv \
    uv pip install .[postgres]
```

and, of course, I have to add `--target=my-custom-image --build-arg=BUILD_TRANSLATIONS=true` to `docker build` command.

The drawback is that I have to keep a fork of superset but the advantage is that the build is, I believe, as fast as possible (because it will only rebuild the required stages, not the whole image) and the changes are easy to maintain.

But **if the compiled translation files could be provided as release artifacts**, we could make this even faster/more maintainable.

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832860

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "jpchev (via GitHub)" <gi...@apache.org>.
GitHub user jpchev added a comment to the discussion: superset 5.0.0 translation is not available

@dosu it seems I can get translations when I compile the code source, for example running
`docker compose up`
but that's not what I want: I'd like to add translations to an official Superset docker image, or to an image of mine derived from an existing official image.

How to get that?

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832858

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "jpchev (via GitHub)" <gi...@apache.org>.
GitHub user jpchev added a comment to the discussion: superset 5.0.0 translation is not available

@dosu in my container the path /app/superset/translations/fr/LC_MESSAGES/ is empty, yet I've built it with BUILD_TRANSLATIONS=true

I noticed in the UI I see few menu items translated in french, but the majority are still in english, this looks like a bug

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832854

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: superset 5.0.0 translation is not available

<!-- Answer -->
The translation source files (`.po` files for 20 languages + the `.pot` template) total roughly **~22 MB uncompressed** [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/translations). After compilation, the backend `.mo` and frontend `.json` files add some overhead on top of that, but the compiled formats are generally smaller than the source `.po` files. So the realistic image size increase from bundling all compiled translations (`.mo` + `.json`, without the raw `.po` source) would likely be in the **low tens of megabytes** — a modest increase relative to the overall lean image size.

Beyond size, the other considerations for keeping them omitted were:

1. **Build time**: Compiling translations requires running `pybabel compile` and `npm run build-translation`, which adds time to CI/CD builds. The multi-stage Dockerfile runs these in parallel, but it still adds to overall build duration [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L79-L141).
2. **Webpack bundle size**: When `BUILD_TRANSLATIONS=false`, webpack strips unnecessary locale data from libraries like `moment-timezone`, keeping only English — this reduces the frontend JS bundle size beyond just the translation files themselves [[3]](https://github.com/apache/superset/pull/30099).
3. **Consistency with the "lean defaults" philosophy**: The exclusion was part of a broader 5.0.0 strategy that also removed Chromium and Firefox from the default image [[4]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md#L45-L46) [[5]](https://github.com/apache/superset/pull/34258).

That said, there's been [significant community friction](https://github.com/apache/superset/issues/35330#issuecomment-3552497636) around this — since database drivers were already removed in 4.0 (meaning most users build custom images anyway), bundling translations would reduce a pain point without meaningfully changing the customization story. Multiple users in this thread and in [this discussion](https://github.com/apache/superset/discussions/39170) have requested an official image variant with translations included.


<!-- 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).

[![Leave Feedback](https://img.shields.io/badge/Leave%20Feedback-555555?style=flat)](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=2b7c9f95-1ce5-49b5-9702-ec5f10828ff7) [![Ask Dosu about superset](https://img.shields.io/badge/Ask%20Dosu%20about%20superset-2f7b3f?style=flat&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iODYiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCA4NiA4OSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNS4yOTIzNiAxMi43OTI4TDE3Ljc1OTMgNi42ODE4OFY3Mi41NjY3TDUuMjkyMzYgODQuMDYxOFYxMi43OTI4WiIgZmlsbD0iI0I0QkI5MSIvPjxwYXRoIGQ9Ik0xOC4yNTc1IDczLjExOTZMNTkuMTMyO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jQ3MzggNTEuNDIzMSA0OS40NzM4QzM3LjEwOTMgNDkuNDczOCAzMi41Nzg3IDM3LjM1OTYgMzIuNTc4NyAzNi4wMTM1IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjcuNjkxNjEi
 IHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjxwYXRoIGQ9Ik0wLjM0ODYzMyA4NS40OTQ2QzAuMzQ4NjMzIDg1LjQ5NDYgMjkuNDg1NiA4NS44MzA5IDM0LjgwOSA4NS42OThDNDQuODMzNyA4NS40NDc3IDUxLjI4NzIgODQuNDAyIDU3LjUyNjkgNzguOTcyNEM2Mi44MTI5IDc0LjM3MjcgNzUuMTM0MiA1OS42ODM2IDc1LjEzNDIgNTkuNjgzNiIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI2LjE2NDgyIi8%2BPC9zdmc%2B)](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) [![Share Dosu with your team](https://img.shields.io/badge/Share%20Dosu%20with%20your%20team-1f6feb?style=flat)](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/42585#discussioncomment-17832862

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: superset 5.0.0 translation is not available

<!-- Answer -->
You do not need to manually copy translation files if you build your Superset 5.0.0 Docker image with `BUILD_TRANSLATIONS=true`—the build process should generate and include both backend (.mo) and frontend (.json) translation files automatically from the source .po files [source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L27-L210).

If French translations still don't work, here’s what to check:

- Make sure the build logs show that translation steps (like `npm run build-translation` and `pybabel compile`) ran without errors and produced files for French.
- In your built image, confirm that `superset/translations/fr/LC_MESSAGES/messages.json` (frontend) and `superset/translations/fr/LC_MESSAGES/messages.mo` (backend) exist.
- If the French option appears but doesn’t work, check the browser console for 404 errors or “Failed to fetch language pack” messages—this means the frontend JSON file is missing or not loaded [source](https://github.com/apache/superset/issues/35330#issuecomment-3351457023).
- Locale codes must match between frontend and backend. For most setups, `"fr"` is correct, but if you use a variant or see a mismatch, 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
```

- Some UI elements may remain untranslated if their keys are missing from the French translation files, especially in chart plugins and new UI features [source](https://github.com/apache/superset/discussions/34540#discussioncomment-13994711).

If you follow these steps and translations still don’t work, check for errors in your build logs and browser console, and verify the translation files are present in the image. Let me know what you find!


<!-- 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/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ec96fac4-79dd-40d1-8a03-afd1420888cb?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](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-17832853

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "jpchev (via GitHub)" <gi...@apache.org>.
GitHub user jpchev added a comment to the discussion: superset 5.0.0 translation is not available

> To fix the French translation issue in Superset 5.0.0:
> 
> 1. Check Translation Files: Ensure the paths for messages.po (backend) and messages.json (frontend) are correct.
> 2. Verify the BUILD_TRANSLATIONS Argument: Ensure it's being passed correctly during the build process.
> 3. Manually Build Translations: Try manually building translation files with pybabel for the backend and verify frontend assets.
> 4. Confirm Language in superset_config.py: Ensure French is selected as the default language.
> 5. Check Logs: Review container logs for errors related to translations.
> 6. Optional: If urgent, consider reverting to Superset 4.1.2 until the issue is fixed in 5.0.0.
> 
> For more flexibility and support, visit AccuWeb Cloud , they provide good support and excellent services .

thank you for your reply, so do I need to manually copy the translation files? @dosu says I don't need to.

I build with
`docker build --build-arg BUILD_TRANSLATIONS=true -t my-superset:5.0.0-custom .`
and I have this my superset_config.py file

```
BABEL_DEFAULT_LOCALE = "fr"

LANGUAGES = {
    "en": {"flag": "us", "name": "English"},
    "fr": {"flag": "fr", "name": "Français"},
}

```
but translations don't work.

BTW, what are the correct paths for messages.po (backend) and messages.json (frontend) ?

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832852

----
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


Re: [D] superset 5.0.0 translation is not available [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
GitHub user sfirke added a comment to the discussion: superset 5.0.0 translation is not available

@dosubot how much would the size of the `lean` docker image increase if we bundled all translations into it? Are there other reasons to keep them omitted?

GitHub link: https://github.com/apache/superset/discussions/42585#discussioncomment-17832861

----
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