feat: bake translations as part of the build processes (#28483)

This commit is contained in:
Maxime Beauchemin
2024-05-29 16:58:08 -07:00
committed by GitHub
parent 78aa79bb15
commit 8d57a35531
36 changed files with 277 additions and 99471 deletions

View File

@@ -50,4 +50,4 @@ jobs:
uses: ./.github/actions/setup-backend/
- name: Test babel extraction
if: steps.check.outputs.python
run: flask fab babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _,__,t,tn,tct
run: scripts/translations/babel_update.sh

View File

@@ -43,7 +43,7 @@ jobs:
if: steps.check.outputs.frontend
working-directory: ./superset-frontend
run: |
npm run check-translation
npm run build-translation
babel-extract:
runs-on: ubuntu-20.04
@@ -64,4 +64,4 @@ jobs:
uses: ./.github/actions/setup-backend/
- name: Test babel extraction
if: steps.check.outputs.python
run: ./scripts/babel_update.sh
run: ./scripts/translations/babel_update.sh