mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
Adds scripts/i18n/check-translation-drift.mjs — a deterministic CI gate that verifies every source recorded in .i18n-state.json still hashes to the same SHA-256 on disk and every produced translation target exists with its recorded hash. No API calls. Modes: --strict (default, exit 1 on any drift), --warn (exit 0 with report), --json (machine-readable report). Also adds three npm scripts: - i18n:run run the translator (incremental, hash-based) - i18n:run:dry preview what would happen (no API calls, no writes) - i18n:check drift checker (used in CI / pre-merge) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>