From 454a0f42445be82f0b5f22b8557aa1cdd5ae4906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Sun, 23 Aug 2026 05:40:01 +0000 Subject: [PATCH] hold officer-web at zero hardcoded strings Phase 2 is complete: 555 -> 0. Verified the guard both ways -- exit 1 naming the string and file when one is reintroduced, exit 0 once it is gone. officerdev is still at 578 and stays out of ZEROED; that is phase 3. --- scripts/i18n/scan-hardcoded.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/i18n/scan-hardcoded.ts b/scripts/i18n/scan-hardcoded.ts index f7617247..cb18a1a4 100755 --- a/scripts/i18n/scan-hardcoded.ts +++ b/scripts/i18n/scan-hardcoded.ts @@ -30,8 +30,12 @@ const AREAS = [ * 'shared components' landed 2026-08-23 (localization phase 1). It holds three `new Error()` messages * that must NEVER be translated; they are reported but excluded from the check, which is why the * neverTranslate split below has to exist for this entry to be possible at all. + * + * 'officer-web (shell)' landed 2026-08-23 (phase 2). It holds no never-translate hits of its own; what it + * does hold is ~30 `` labels quoted from Google's console, which + * `stripUntranslated` skips for the same reason. */ -const ZEROED: string[] = ['shared components']; +const ZEROED: string[] = ['shared components', 'officer-web (shell)']; const SKIP = /node_modules|\.gen\.|[/\\]locales[/\\]|[/\\]vendor[/\\]|\.test\.|\.d\.ts$/;