Files
evig/scripts
Mao NakamotoandClaude Opus 4.7 52acb231dc tools(ci): wire i18n leak audit into compliance gate
scripts/i18n-leaks.mjs now supports --check (CI mode, fails if leak count
grew vs baseline) and --update-baseline (rebaseline after a deliberate
fix). Initial baseline captures the 49 known false-positive leaks (Swiss
NGO names, file paths, brand/tech tokens like Strapi/Tina, Linux distro
names, email placeholders).

package.json:
- new script: compliance:i18n-leaks → node scripts/i18n-leaks.mjs --check
- compliance umbrella now chains: ssot → i18n → i18n-hardcoded → i18n-leaks

i18n-hardcoded baseline refreshed: the recent JA/KO/RU translation batches
confused the "wrong-language" heuristic (it expects Latin stop-words for
locale-fingerprinting). The new findings are all legitimate translations —
accepted as baseline.

After this commit, any future German value leaking into a non-DE locale
(e.g. someone hand-copies a German blob into es.json instead of translating)
fails CI immediately instead of slipping in silently.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-09 19:16:53 +02:00
..