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 d3a8f9a commit 020cfc1
Showing 1 changed file with 9 additions and 25 deletions.
34 changes: 9 additions & 25 deletions .github/workflows/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,12 @@ on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- name: Install translate-toolkit
run: |
sudo apt update
sudo apt install translate-toolkit
- run: pip install -r requirements.txt
- name: Update catalogs
working-directory: extension_explorer
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
dependencies; -r requirements.txt
working-directory: extension_explorer
python-version: '3.10'

0 comments on commit 020cfc1

Please sign in to comment.