CI: Check for missing translations.

This commit is contained in:
Joachim Bauch 2021-12-08 10:39:52 +01:00
parent 51f78956e8
commit 8598dbed63
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,24 @@
name: Check translations
on:
pull_request:
paths:
- "l10n/**"
push:
paths:
- "l10n/**"
schedule:
- cron: "0 2 * * SUN"
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- name: Install dependencies
run: sudo apt -y update && sudo apt -y install gettext
- name: Check translations
run: make check-translations

View file

@ -31,6 +31,16 @@ translationfiles/%/pdfdraw.po: translationtool.phar pot
l10n: translationtool.phar
./translationtool.phar convert-po-files
check-translations: l10n
@out=$$(git diff l10n); \
if [ ! -z "$$out" ]; then \
echo; \
echo "Found unprocessed translations, need to update folder \"l10n\":"; \
echo; \
echo "$$out"; \
exit 1; \
fi
npm: package.json package-lock.json
npm install