superset icon indicating copy to clipboard operation
superset copied to clipboard

Translation process in Dockerfile does not work.

Open flowerkzj opened this issue 2 years ago • 1 comments

https://github.com/apache/superset/blob/8a57a71bed30a781a1d5e5b2ce42ccd08045b3e9/Dockerfile#L108

The superset only can be translated partly which only translate the codes in js but not python.

Therefore I replace it with codes below:

&& pybabel compile -d superset/translations || echo "warning: something is wrong"

Although it can solve some way, it seems not an elegant way. Hope for an official solution.

flowerkzj avatar Jul 04 '22 04:07 flowerkzj

Sadly, I have the same issue but the requested solution does not work for me

artemonsh avatar Nov 22 '22 15:11 artemonsh

Right, the flask fab babel-compile --target superset/translations command they are using is not a blocking call, and it moves on to the next step without waiting for this command to finish.

The above proposed solution works fine.

@artemonsh What's the issue?

vivek-kandhvar avatar Jul 09 '23 04:07 vivek-kandhvar

Is this still an issue? I presume so. I thought the backend uses the .mo files that are produced by the script, but ignored by git. I haven't validated all that... but I'm curious if this is still an issue, or if we need documentation updates, or what.

rusackas avatar Mar 04 '24 20:03 rusackas

Closing as stale, but probably also irrelevant. A lot of this has been revamped lately. Certain build processes take care of generating .mo/.json files automatically, and the .pot/.po file generation process has been smoothed out a bit. We'll continue to add CI and make this more automatic in the future.

rusackas avatar Aug 01 '24 00:08 rusackas