Skip to content

Merge pull request #305 from open-contracting/pre-commit-ci-update-co… #339

Merge pull request #305 from open-contracting/pre-commit-ci-update-co…

Merge pull request #305 from open-contracting/pre-commit-ci-update-co… #339

Workflow file for this run

name: Translations
on:
pull_request: {}
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: pip
cache-dependency-path: '**/requirements*.txt'
- name: Install translate-toolkit
run: |
sudo apt update
sudo apt install gettext translate-toolkit
- run: pip install -r requirements.txt
- run: python manage.py makemessages -a
- run: python manage.py makemessages -a -d djangojs -i node_modules -i static
- name: Count incomplete translations
shell: bash
run: |
output=$(find . -name LC_MESSAGES -not -path "*/en_US/*" -exec pocount --incomplete --short "{}" +)
echo $output
[ "$output" = "" ]