From ebdacbc2b2ac48e137dd9a1409aa334512e2fb62 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 26 Nov 2022 18:11:28 +0100 Subject: Make sure translation are in sync The new script makes sure that strings files don't contain obsolete strings but also ease the job of contributors by adding missing translations as comments. A Github Action ensures that translations stay in sync over time. --- .github/workflows/check-translations.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/check-translations.yml (limited to '.github/workflows') diff --git a/.github/workflows/check-translations.yml b/.github/workflows/check-translations.yml new file mode 100644 index 0000000..82d87c6 --- /dev/null +++ b/.github/workflows/check-translations.yml @@ -0,0 +1,16 @@ +name: Check translations + +on: + workflow_dispatch: + push: + pull_request: + +jobs: + check-translations: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - run: python3 sync_translations.py + - name: Check that strings files are uptodate, run python3 sync_translations.py otherwise + run: git diff --exit-code -- cgit v1.2.3