blob: 2ba7d3588c4955546dcaf3ddba426ba8841612cd (
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/'
exit 1
}
fi
|