-
Notifications
You must be signed in to change notification settings - Fork 14k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FAB translation is ignored #26738
Comments
I confirm that French i18n does not work out of the box for the top menu (Dashboards | Charts | Datasets | SQL). I also confirm that following these steps solves the problem of the localization not been taken into account :
A step needs to be added to the Docker build to include |
Yep, this is all a bit of a mess.
If we do all that, then hopefully things will stay up to date, stay clean, and people will contribute in all the right ways. Then we can revisit the topic of enhancing/automating the population of translations. CC @mistercrunch since we were just talking about all this elsewhere. |
Ok, I think we can close this out now. This PR has moved all the translation builds into part of the Superset build process, so these should be built for most (or all?) use cases. Check it out and let me know if you agree (or not) that it resolves this concern. |
Bug description
All translated strings related to FAB are ignored, e.g. the navbar.
This is due to the absence of the compiled messages.mo files in the Docker image.
The solution is to run
and add this possibly to the docker/docker-init.sh script.
How to reproduce the bug
For example add
to your docker/pythonpath_dev/superset_config_docker.py
git checkout 3.1.0 # Edit docker/pythonpath_dev/superset_config_docker.py to change BABEL_DEFAULT_LOCALE TAG=3.1.0 docker compose -f docker-compose-non-dev.yml up -d
Screenshots/recordings
Before running pybabel compile -d superset/translations
After running pybabel compile -d superset/translations
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: