File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ set REPODIR=%SCRIPTPATH%\..
2121set CLONEDIR = %REPODIR% \..\%LIBNAME% -tempdir
2222if exist %CLONEDIR% ( rmdir /s /q %CLONEDIR% )
2323git clone -l -s . %CLONEDIR%
24+
25+ @ REM Compile translations in cloned directory using dev environment (which has babel)
26+ @ REM This must happen BEFORE pushd because run_with_env.py loads .env from current dir
27+ %PYTHON% scripts/run_with_env.py %PYTHON% -m guidata.utils.translations compile --name datalab --directory %CLONEDIR%
28+
2429pushd %CLONEDIR%
2530
2631@ REM Backup PYTHONPATH
@@ -45,8 +50,7 @@ for %%s in (16 24 32 48 128 256) do (
4550magick " %RESPATH% \tmp-*.png" " %RESPATH% \DataLab.ico"
4651del " %RESPATH% \tmp-*.png"
4752
48- @ REM Compile translations
49- %PYTHON% -m guidata.utils.translations compile --name datalab --directory .
53+ @ REM Note: Translations were already compiled in the cloned directory using the dev environment
5054
5155@ REM Generate build manifest
5256%PYTHON% scripts\generate_manifest.py
You can’t perform that action at this time.
0 commit comments