Skip to content

Commit

Permalink
ci: Reuse workflow for i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 26, 2024
1 parent 455ed55 commit 1f8cad7
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions docs/python/samples/i18n/babel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,9 @@ on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install translate-toolkit
run: |
sudo apt update
sudo apt install translate-toolkit
- run: pip install babel
- name: Update catalogs
run: |
pybabel extract -F pyproject.toml -o messages.pot .
pybabel update -N -i messages.pot -d locale
- name: Count incomplete translations
shell: bash
run: |
output=$(find . -name LC_MESSAGES -exec pocount --incomplete --short "{}" +)
echo $output
[ "$output" = "" ]
i18n:
uses: open-contracting/.github/.github/workflows/i18n-babel.yml@main
with:
command: |
pybabel extract -F pyproject.toml -o messages.pot .
pybabel update -N -i messages.pot -d locale

0 comments on commit 1f8cad7

Please sign in to comment.