Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

chore(husky): wire env-doc-sync + i18n drift advisories in pre-commit

diegosouzapw3796fc09255e
diff --git a/.husky/pre-commit b/.husky/pre-commit
index 5b6946b171..1bfbc29d10 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -8,3 +8,14 @@ fi
npx lint-staged
node scripts/check/check-docs-sync.mjs
npm run check:any-budget:t11
+
+# Strict env-doc sync (FASE 2)
+node scripts/check/check-env-doc-sync.mjs
+
+# i18n docs drift advisory (FASE 5) — warn-only on pre-commit; CI enforces strict.
+node scripts/i18n/check-translation-drift.mjs --warn || \
+ echo "⚠️ i18n drift detected. Run 'npm run i18n:run' to update locale mirrors."
+
+# i18n UI coverage advisory (FASE 6) — pre-commit warns; CI enforces strict.
+node scripts/i18n/check-ui-keys-coverage.mjs --threshold=80 || \
+ echo "⚠️ UI i18n coverage below 80% for at least one locale."