Skip to content

Bugfix Issue 2131 Authored Chapter I18n

sebiboga edited this page Nov 29, 2026 · 1 revision

Bugfix — Issue #2131: authored Test Strategy i18n keys lost in all bundles

Issue #2130 added a project-specific text area to the Maintainability & Portability chapter and 15 locale keys to all ten bundles. Commit a021fc580 (#1151, linked requirements in execTest.html) rewrote the tail block of every bundle and removed those keys again, including ts.maintAuthoredTitle, ts.maintAuthoredHint, ts.maintTextLabel and ts.maintEmpty. Because the English reference en.json lost the same keys, the coverage gate saw equal counts and reported 9/9 PASS.

The screens therefore painted raw keys — before the fix:

Maintainability editor showing raw i18n keys

Fix

  • Restored each key with its original locale translation from f21665fb7, appended after the current exe.* tail in de/en/es/fr/it/ja/pt/ro/ru/zh — no existing line was rewritten, so concurrent additions survive.
  • Added ai/required_i18n_keys.txt with the 15 keys and a new check in ai/verify_i18n_coverage.sh that fails when a pinned key is missing from en.json or any bundle. Rejected: English fallbacks in every bundle, a full-file JSON rewrite, or scanning all templates for keys (the repo has unrelated historical gaps that would make the gate permanently red).

After the fix, the editor and the report show the translated labels:

Maintainability editor with restored labels

Verification

python3 -m json.tool OK ×10; real gate 14138 keys, 9/9 PASS; negative test with ts.maintEmpty removed from all ten bundles in a temp copy → exit 1 with FAIL en.json plus 9 bundle FAILs. Browser: editor shows Project-specific notes, Maintainability & portability notes, Save notes, No notes have been saved…; report panel 11 shows 11. Authored chapter notes and its localized empty state; console clean. BFF strategychapter (init/list) and strategyreport (init) → 200; 0 Error/Warning rows in events. Regression suite Issue #2131 appended, own suite-gate checks PASS.

Refs #2130, #1151. Fixes #2131.

Clone this wiki locally