blob: 6762b56fe180b260c8574bc021e509385e4da517 (
plain) (
tree)
|
|
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")"
cd ../
set -x
./scripts/extract-translations.sh
./scripts/apply-translations.sh
if [[ "${1:-}" = '--check' ]]; then
git add locale/
git diff --quiet --staged -- ':!scripts/' || {
echo 'Translations are out of sync:'
git diff --staged -- ':!scripts/'
git diff --quiet --staged
exit 1
}
fi
|