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 [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]