blob: d15a9e64ad38204e1129b7a218e2fd9c7902e2b1 (
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 || {
echo 'Translations are out of sync'
exit 1
}
fi
|