#!/bin/bash set -euo pipefail HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" REPO_ROOT="$(cd "$HOOK_DIR/.." && pwd)" cd "$REPO_ROOT" if [[ -z "${POEDITOR_API_TOKEN:-}" ]] || [[ -z "${POEDITOR_PROJECT_ID:-}" ]]; then exit 0 fi if ! command -v python3 &>/dev/null; then exit 0 fi if ! python3 scripts/i18nsync.py check &>/dev/null; then echo "" echo "Run: python3 scripts/i18nsync.py sync" echo "" exit 1 fi exit 0