diff options
-rwxr-xr-x | scripts/sync-translations.sh | 7 | ||||
-rwxr-xr-x | tests.sh | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/sync-translations.sh b/scripts/sync-translations.sh index 4becea6..7256f6e 100755 --- a/scripts/sync-translations.sh +++ b/scripts/sync-translations.sh @@ -7,3 +7,10 @@ set -x ./scripts/extract-translations.sh ./scripts/apply-translations.sh + +if [[ "${1:-}" = '--check' ]]; then + git diff --quiet || { + echo 'Translations are out of sync' + exit 1 + } +fi @@ -10,4 +10,4 @@ set -x ./scripts/assert-todos.sh ./scripts/assert-content.sh -# ./scripts/sync-translations.sh --check +./scripts/sync-translations.sh --check |