Add sanity check for syntax errors in translations (#1978)

The pull request should be blocked on basic typos breaking the SMC file.
This commit is contained in:
peace-maker
2023-04-09 19:25:50 +02:00
committed by GitHub
parent b1b993989a
commit 4e6774befb
2 changed files with 71 additions and 0 deletions
@@ -0,0 +1,29 @@
name: Sanity check translation phrases
on:
push:
branches:
- master
paths:
- 'translations/**'
pull_request:
branches:
- master
paths:
- 'translations/**'
workflow_dispatch:
jobs:
check_translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Setup Python 3.10
with:
python-version: "3.10"
- name: Check translation phrases syntax
working-directory: tools/language_check
run: |
python ./sanity_check.py