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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to