mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 14:57:58 +01:00
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>