You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "villelachute (via GitHub)" <gi...@apache.org> on 2026/04/07 18:44:24 UTC
[D] Superset in french [superset]
GitHub user villelachute created a discussion: Superset in french
Could someone explain how to make Superset available in French? I'm using Docker's docker-compose-image-tag.yml file, and I've inserted the following into the superset_config_docker.py file in the pythonpath_dev folder:
BABEL_DEFAULT_LOCALE = "fr"
LANGUAGES = {
"fr": {"flag": "fr", "name": "Français"},
"en": {"flag": "us", "name": "English"},
But apart from the flags I can select, everything is still in English.
Thank you.
GitHub link: https://github.com/apache/superset/discussions/39170
----
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 in french [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: Superset in french
<!-- Greeting -->
Hi @villelachute! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
The main reason your UI is still in English is that **the official Docker images don't include compiled translation files by default** — they're excluded to reduce image size [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md#L46). Setting `BABEL_DEFAULT_LOCALE` alone isn't enough.
Here's what you need to do:
**1. Rebuild your Docker image with translations enabled:**
```bash
docker build --build-arg BUILD_TRANSLATIONS=true -t superset:custom .
```
Or in your Docker Compose setup, pass the build arg so that both backend `.mo` and frontend `.json` translation files get compiled [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L27).
**2. Add a bootstrap override to your `superset_config_docker.py`:**
There's a known issue in Superset (versions 5.0.0–6.0.0) where a race condition causes the frontend to render in English before the language pack loads [[3]](https://github.com/apache/superset/pull/36893). To work around this, add:
```python
from superset.translations.utils import get_language_pack
def bootstrap_overrides(bootstrap_data):
bootstrap_data["locale"] = "fr"
bootstrap_data["language_pack"] = get_language_pack("fr")
return bootstrap_data
COMMON_BOOTSTRAP_OVERRIDES_FUNC = bootstrap_overrides
```
This forces the French language pack to load for all users, including on the login page [[4]](https://github.com/apache/superset/issues/38178) [[5]](https://github.com/apache/superset/issues/34058).
**3. Restart Superset** after making these changes.
A couple of things to keep in mind:
- Even with everything configured correctly, some parts of the UI may still appear in English because community translations are incomplete for many languages [[6]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L401-L402).
- If you're on Superset 5.0.0 specifically, there's a known bug where `BUILD_TRANSLATIONS=true` may not work correctly in the Docker build scripts [[7]](https://github.com/apache/superset/issues/35959) — consider upgrading if that's the case.
- A permanent fix for the race condition was merged via [PR #36893](https://github.com/apache/superset/pull/36893) and should be available in newer releases.
<!-- 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=7820ceb5-c573-4948-b255-d7281654ed92) [](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)
GitHub link: https://github.com/apache/superset/discussions/39170#discussioncomment-16480401
----
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 in french [superset]
Posted by "edujatahy (via GitHub)" <gi...@apache.org>.
GitHub user edujatahy deleted a comment on the discussion: Superset in french
@oyo Excelente pesquisa. Li o documento inteiro e o Bre-B e de longe o melhor fit que vimos ate agora para expansao LatAm -- acima de Argentina e Mexico.
Alguns pontos:
1. **Banking node model encaixa perfeitamente.** Pesquisei o custo do registro PSAV (PL 510/2025) -- o threshold e de 3.000 SMLMV (~USD 975K) em *revenue de fees*, nao volume bruto. Nosso modelo descentralizado mantem cada node abaixo do limiar individualmente. Mesma logica do Brasil.
2. **Naming:** nao vamos com "DeCo". Vamos discutir branding com mente aberta depois de validar o mercado. Sem pressa nisso.
3. **Proximo passo concreto:** voce precisa ir la e sentir o mercado. Quando faz sentido agendar?
GitHub link: https://github.com/apache/superset/discussions/39170#discussioncomment-16494172
----
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 in french [superset]
Posted by "edujatahy (via GitHub)" <gi...@apache.org>.
GitHub user edujatahy added a comment to the discussion: Superset in french
@oyo Excelente pesquisa. Li o documento inteiro e o Bre-B e de longe o melhor fit que vimos ate agora para expansao LatAm -- acima de Argentina e Mexico.
Alguns pontos:
1. **Banking node model encaixa perfeitamente.** Pesquisei o custo do registro PSAV (PL 510/2025) -- o threshold e de 3.000 SMLMV (~USD 975K) em *revenue de fees*, nao volume bruto. Nosso modelo descentralizado mantem cada node abaixo do limiar individualmente. Mesma logica do Brasil.
2. **Naming:** nao vamos com "DeCo". Vamos discutir branding com mente aberta depois de validar o mercado. Sem pressa nisso.
3. **Proximo passo concreto:** voce precisa ir la e sentir o mercado. Quando faz sentido agendar?
GitHub link: https://github.com/apache/superset/discussions/39170#discussioncomment-16494172
----
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 in french [superset]
Posted by "fowlerp397-tech (via GitHub)" <gi...@apache.org>.
GitHub user fowlerp397-tech added a comment to the discussion: Superset in french
Thanks @dosu, that helps clarify things 🙏
Just to confirm — if I rebuild the image with BUILD_TRANSLATIONS=true,
should that be enough on newer versions, or is the bootstrap_overrides
workaround still needed?
On Tue, Apr 7, 2026, 1:51 PM dosubot[bot] ***@***.***> wrote:
> Hi @villelachute <https://github.com/villelachute>! I'm Dosu
> <https://go.dosu.dev/dosubot> and I’m helping the superset team.
>
> The main reason your UI is still in English is that *the official Docker
> images don't include compiled translation files by default* — they're
> excluded to reduce image size [1]
> <https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md#L46>.
> Setting BABEL_DEFAULT_LOCALE alone isn't enough.
>
> Here's what you need to do:
>
> *1. Rebuild your Docker image with translations enabled:*
>
> docker build --build-arg BUILD_TRANSLATIONS=true -t superset:custom .
>
> Or in your Docker Compose setup, pass the build arg so that both backend
> .mo and frontend .json translation files get compiled [2]
> <https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L27>
> .
>
> *2. Add a bootstrap override to your superset_config_docker.py:*
>
> There's a known issue in Superset (versions 5.0.0–6.0.0) where a race
> condition causes the frontend to render in English before the language pack
> loads [3] <https://github.com/apache/superset/pull/36893>. To work around
> this, add:
>
> from superset.translations.utils import get_language_pack
> def bootstrap_overrides(bootstrap_data):
> bootstrap_data["locale"] = "fr"
> bootstrap_data["language_pack"] = get_language_pack("fr")
> return bootstrap_data
> COMMON_BOOTSTRAP_OVERRIDES_FUNC = bootstrap_overrides
>
> This forces the French language pack to load for all users, including on
> the login page [4] <https://github.com/apache/superset/issues/38178> [5]
> <https://github.com/apache/superset/issues/34058>.
>
> *3. Restart Superset* after making these changes.
>
> A couple of things to keep in mind:
>
> - Even with everything configured correctly, some parts of the UI may
> still appear in English because community translations are incomplete for
> many languages [6]
> <https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L401-L402>
> .
> - If you're on Superset 5.0.0 specifically, there's a known bug where
> BUILD_TRANSLATIONS=true may not work correctly in the Docker build
> scripts [7] <https://github.com/apache/superset/issues/35959> —
> consider upgrading if that's the case.
> - A permanent fix for the race condition was merged via PR #36893
> <https://github.com/apache/superset/pull/36893> and should be
> available in newer releases.
>
> *To reply, just mention @dosu
> <https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link>.*
> ------------------------------
>
> How did I do? Good
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=great_response>
> | Irrelevant
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=irrelevant_answer>
> | Incorrect
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=incorrect_sources>
> | Verbose
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=too_verbose>
> | Hallucination
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=hallucination>
> | Report 🐛
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=bug_report>
> | Other
> <https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=other>
> [image: Chat with Dosu]
> <https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge>
> [image: Open in Cursor]
> <https://cursor.com/link/prompt?text=The%20main%20reason%20your%20UI%20is%20still%20in%20English%20is%20that%20%2A%2Athe%20official%20Docker%20images%20don%27t%20include%20compiled%20translation%20files%20by%20default%2A%2A%20%E2%80%94%20they%27re%20excluded%20to%20reduce%20image%20size%20%5B%5B1%5D%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md%23L46%29.%20Setting%20%60BABEL_DEFAULT_LOCALE%60%20alone%20isn%27t%20enough.%0A%0AHere%27s%20what%20you%20need%20to%20do%3A%0A%0A%2A%2A1.%20Rebuild%20your%20Docker%20image%20with%20translations%20enabled%3A%2A%2A%0A%0A%60%60%60bash%0Adocker%20build%20--build-arg%20BUILD_TRANSLATIONS%3Dtrue%20-t%20superset%3Acustom%20.%0A%60%60%60%0A%0AOr%20in%20your%20Docker%20Compose%20setup%2C%20pass%20the%20build%20arg%20so%20that%20both%20backend%20%60.mo%60%20and%20frontend%20%60.json%60%20translation%20files%20get%20compiled%20%5B%5B2%5D%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae
4b43b1ed3b063ffe45377799c/Dockerfile%23L27%29.%0A%0A%2A%2A2.%20Add%20a%20bootstrap%20override%20to%20your%20%60superset_config_docker.py%60%3A%2A%2A%0A%0AThere%27s%20a%20known%20issue%20in%20Superset%20%28versions%205.0.0%E2%80%936.0.0%29%20where%20a%20race%20condition%20causes%20the%20frontend%20to%20render%20in%20English%20before%20the%20language%20pack%20loads%20%5B%5B3%5D%5D%28https%3A//github.com/apache/superset/pull/36893%29.%20To%20work%20around%20this%2C%20add%3A%0A%0A%60%60%60python%0Afrom%20superset.translations.utils%20import%20get_language_pack%0A%0Adef%20bootstrap_overrides%28bootstrap_data%29%3A%0A%20%20%20%20bootstrap_data%5B%22locale%22%5D%20%3D%20%22fr%22%0A%20%20%20%20bootstrap_data%5B%22language_pack%22%5D%20%3D%20get_language_pack%28%22fr%22%29%0A%20%20%20%20return%20bootstrap_data%0A%0ACOMMON_BOOTSTRAP_OVERRIDES_FUNC%20%3D%20bootstrap_overrides%0A%60%60%60%0A%0AThis%20forces%20the%20French%20language%20pack%20to%20load%20for%20all%20users%2C%20including%20on%20t
he%20login%20page%20%5B%5B4%5D%5D%28https%3A//github.com/apache/superset/issues/38178%29%20%5B%5B5%5D%5D%28https%3A//github.com/apache/superset/issues/34058%29.%0A%0A%2A%2A3.%20Restart%20Superset%2A%2A%20after%20making%20these%20changes.%0A%0AA%20couple%20of%20things%20to%20keep%20in%20mind%3A%0A%0A-%20Even%20with%20everything%20configured%20correctly%2C%20some%20parts%20of%20the%20UI%20may%20still%20appear%20in%20English%20because%20community%20translations%20are%20incomplete%20for%20many%20languages%20%5B%5B6%5D%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py%23L401-L402%29.%0A-%20If%20you%27re%20on%20Superset%205.0.0%20specifically%2C%20there%27s%20a%20known%20bug%20where%20%60BUILD_TRANSLATIONS%3Dtrue%60%20may%20not%20work%20correctly%20in%20the%20Docker%20build%20scripts%20%5B%5B7%5D%5D%28https%3A//github.com/apache/superset/issues/35959%29%20%E2%80%94%20consider%20upgrading%20if%20that%27s%20the%20case.%0A-%20A%20perma
nent%20fix%20for%20the%20race%20condition%20was%20merged%20via%20%5BPR%20%2336893%5D%28https%3A//github.com/apache/superset/pull/36893%29%20and%20should%20be%20available%20in%20newer%20releases.>
> [image: Join Discord]
> <https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord>
> [image: Share on X]
> <https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/39170>
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/superset/discussions/39170#discussioncomment-16480401>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/B72HASOD4II3D337H6TWDW34UVE3BAVCNFSM6AAAAACXPZ55TCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTMNBYGA2DAMI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
GitHub link: https://github.com/apache/superset/discussions/39170#discussioncomment-16490534
----
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 in french [superset]
Posted by "villelachute (via GitHub)" <gi...@apache.org>.
GitHub user villelachute added a comment to the discussion: Superset in french
Here's how I modified my files:
docker-compose-image-tag.yml
x-superset-image: &superset-image
image: superset:custom
build:
context: .
dockerfile: Dockerfile
args:
SUPERSET_IMAGE_TAG: latest-dev
BUILD_TRANSLATIONS: "true"
x-superset-volumes:
&superset-volumes # /app/pythonpath_docker will be appended to the PYTHONPATH in the final container
- ./docker:/app/docker
- ./superset-core:/app/superset-core
- superset_home:/app/superset_home
And at each superset services:
<<: *superset-image
Dockerfile
# limitations under the License.
#
ARG SUPERSET_IMAGE_TAG=latest-dev
######################################################################
# Node stage to deal with static asset construction
######################################################################
ARG PY_VER=3.11.14-slim-trixie
# If BUILDPLATFORM is null, set it to 'amd64' (or leave as is otherwise).
ARG BUILDPLATFORM=${BUILDPLATFORM:-amd64}
# Include translations in the final build
ARG BUILD_TRANSLATIONS="true"
superset_config_docker.py
#SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://pguser:pgpwd@some.host/superset"
#SQLALCHEMY_ECHO = True
# Langue par défaut : français
BABEL_DEFAULT_LOCALE = "fr"
LANGUAGES = {
"fr": {"flag": "fr", "name": "Français"},
"en": {"flag": "us", "name": "English"},
}
AUTH_ROLE_PUBLIC = "Public"
PUBLIC_ROLE_LIKE = "Gamma"
FEATURE_FLAGS = {
"DASHBOARD_RBAC": True,
}
from superset.translations.utils import get_language_pack
def bootstrap_overrides(bootstrap_data):
bootstrap_data["locale"] = "fr"
bootstrap_data["language_pack"] = get_language_pack("fr")
return bootstrap_data
COMMON_BOOTSTRAP_OVERRIDES_FUNC = bootstrap_overrides
With this, it seems to be working on my end.
GitHub link: https://github.com/apache/superset/discussions/39170#discussioncomment-16503513
----
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 in french [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Superset in french
<!-- Greeting -->
Hi @villelachute! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team.
<!-- Answer -->
The main reason your UI is still in English is that **the official Docker images don't include compiled translation files by default** — they're excluded to reduce image size [[1]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md#L46). Setting `BABEL_DEFAULT_LOCALE` alone isn't enough.
Here's what you need to do:
**1. Rebuild your Docker image with translations enabled:**
```bash
docker build --build-arg BUILD_TRANSLATIONS=true -t superset:custom .
```
Or in your Docker Compose setup, pass the build arg so that both backend `.mo` and frontend `.json` translation files get compiled [[2]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile#L27).
**2. Add a bootstrap override to your `superset_config_docker.py`:**
There's a known issue in Superset (versions 5.0.0–6.0.0) where a race condition causes the frontend to render in English before the language pack loads [[3]](https://github.com/apache/superset/pull/36893). To work around this, add:
```python
from superset.translations.utils import get_language_pack
def bootstrap_overrides(bootstrap_data):
bootstrap_data["locale"] = "fr"
bootstrap_data["language_pack"] = get_language_pack("fr")
return bootstrap_data
COMMON_BOOTSTRAP_OVERRIDES_FUNC = bootstrap_overrides
```
This forces the French language pack to load for all users, including on the login page [[4]](https://github.com/apache/superset/issues/38178) [[5]](https://github.com/apache/superset/issues/34058).
**3. Restart Superset** after making these changes.
A couple of things to keep in mind:
- Even with everything configured correctly, some parts of the UI may still appear in English because community translations are incomplete for many languages [[6]](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py#L401-L402).
- If you're on Superset 5.0.0 specifically, there's a known bug where `BUILD_TRANSLATIONS=true` may not work correctly in the Docker build scripts [[7]](https://github.com/apache/superset/issues/35959) — consider upgrading if that's the case.
- A permanent fix for the race condition was merged via [PR #36893](https://github.com/apache/superset/pull/36893) and should be available in newer releases.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=too_verbose) | [Hallucination](https://app
.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other#message_id=7820ceb5-c573-4948-b255-d7281654ed92&feedback_type=other)</sup>
[](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge) [](https://cursor.com/link/prompt?text=The%20main%20reason%20your%20UI%20is%20still%20in%20English%20is%20that%20%2A%2Athe%20official%20Docker%20images%20don%27t%20include%20compiled%20translation%20files%20by%20default%2A%2A%20%E2%80%94%20they%27re%20excluded%20to%20reduce%20image%20size%20%5B%5B1%5D%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/UPDATING.md%23L46%29.%20Setting%20%60BABEL_DEFAULT_LOCALE%60%20alone%20isn%27t%20enough.%0A%0AHere%27s%20what%20you%20need%20to%20do%3A%0A%0A%2A%2A1.%20Rebuild%20your%20Docker%20image%20with%20translations%20enabled%3A%2A%2A%0A%0A%60%60%60bash%0Adocker%20build%20--build-arg%20BUILD_TRANSLATIONS%3Dtrue%20-t%20superset%3Acustom%20.%0
A%60%60%60%0A%0AOr%20in%20your%20Docker%20Compose%20setup%2C%20pass%20the%20build%20arg%20so%20that%20both%20backend%20%60.mo%60%20and%20frontend%20%60.json%60%20translation%20files%20get%20compiled%20%5B%5B2%5D%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/Dockerfile%23L27%29.%0A%0A%2A%2A2.%20Add%20a%20bootstrap%20override%20to%20your%20%60superset_config_docker.py%60%3A%2A%2A%0A%0AThere%27s%20a%20known%20issue%20in%20Superset%20%28versions%205.0.0%E2%80%936.0.0%29%20where%20a%20race%20condition%20causes%20the%20frontend%20to%20render%20in%20English%20before%20the%20language%20pack%20loads%20%5B%5B3%5D%5D%28https%3A//github.com/apache/superset/pull/36893%29.%20To%20work%20around%20this%2C%20add%3A%0A%0A%60%60%60python%0Afrom%20superset.translations.utils%20import%20get_language_pack%0A%0Adef%20bootstrap_overrides%28bootstrap_data%29%3A%0A%20%20%20%20bootstrap_data%5B%22locale%22%5D%20%3D%20%22fr%22%0A%20%20%20%20bootstrap_data%5B%22language
_pack%22%5D%20%3D%20get_language_pack%28%22fr%22%29%0A%20%20%20%20return%20bootstrap_data%0A%0ACOMMON_BOOTSTRAP_OVERRIDES_FUNC%20%3D%20bootstrap_overrides%0A%60%60%60%0A%0AThis%20forces%20the%20French%20language%20pack%20to%20load%20for%20all%20users%2C%20including%20on%20the%20login%20page%20%5B%5B4%5D%5D%28https%3A//github.com/apache/superset/issues/38178%29%20%5B%5B5%5D%5D%28https%3A//github.com/apache/superset/issues/34058%29.%0A%0A%2A%2A3.%20Restart%20Superset%2A%2A%20after%20making%20these%20changes.%0A%0AA%20couple%20of%20things%20to%20keep%20in%20mind%3A%0A%0A-%20Even%20with%20everything%20configured%20correctly%2C%20some%20parts%20of%20the%20UI%20may%20still%20appear%20in%20English%20because%20community%20translations%20are%20incomplete%20for%20many%20languages%20%5B%5B6%5D%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/config.py%23L401-L402%29.%0A-%20If%20you%27re%20on%20Superset%205.0.0%20specifically%2C%20there%27s%20a%20
known%20bug%20where%20%60BUILD_TRANSLATIONS%3Dtrue%60%20may%20not%20work%20correctly%20in%20the%20Docker%20build%20scripts%20%5B%5B7%5D%5D%28https%3A//github.com/apache/superset/issues/35959%29%20%E2%80%94%20consider%20upgrading%20if%20that%27s%20the%20case.%0A-%20A%20permanent%20fix%20for%20the%20race%20condition%20was%20merged%20via%20%5BPR%20%2336893%5D%28https%3A//github.com/apache/superset/pull/36893%29%20and%20should%20be%20available%20in%20newer%20releases.) [](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/39170)
GitHub link: https://github.com/apache/superset/discussions/39170#discussioncomment-16480401
----
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