Skip to content

Commit

Permalink
Add GitHub Action for checking PO files
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed May 11, 2020
1 parent eadd75b commit ed41303
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check translations

on:
push:
paths:
- 'locales/*.po'
pull_request:
paths:
- 'locales/*.po'

jobs:
check-po-validity:
name: Check translations
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install GNU gettext
run: sudo apt-get install gettext

- name: Check PO files with msgfmt -v -c
run: |
for i in translations/*.po ; do
echo "checking $i..."
msgfmt -v -c -o /dev/null $i
done

0 comments on commit ed41303

Please sign in to comment.