Repository navigation
Description
Summary
Two Governance editors, Model access and Default models, build their scope, mode and role choices from hard-coded English arrays instead of the catalogs.
- German and French admins see English: the Mode select shows Allowlist / Blocklist; the Scope select shows Default, User, Team, Role; and the Role select shows Admin, Developer, Editor, Member.
- The rules tables print the raw scope value. CSS capitalizes it into English words, and a role rule's Target shows the raw role id (
admin,developer), even in English. - Budgets share the English role list (
role-options.ts). - The translations already exist: the catalogs have translated scope and role labels (
governance.budgets.scopeLabels.*,governance.featureFlags.scopeLabels.*,governance.featureFlags.roleLabels.*), and Budgets and Feature flags use them.
File (services/platform/app/features/settings/governance/components/) |
Hard-coded values | Rendered at |
|---|---|---|
model-access-editor.tsx:114–119 SCOPE_OPTIONS |
Default, User, Team, Role | rule dialog Scope select :230 |
model-access-editor.tsx:125–128 MODE_OPTIONS |
Allowlist, Blocklist | page Mode select :645 |
model-access-editor.tsx:726–728 |
{rule.scope} with capitalize |
rules table, Scope column |
model-access-editor.tsx:586–587 |
rule.scopeId for role rules |
rules table, Target column (admin) |
default-model-editor.tsx:107–111 SCOPE_OPTIONS |
Default, Team, Role | Scope select :275 |
default-model-editor.tsx:670–672, :541 |
{rule.scope}; role label from ROLE_OPTIONS |
rules table |
role-options.ts:1–6 ROLE_OPTIONS |
Admin, Developer, Editor, Member | Role selects in Model access :243, Default models :288, Budgets :430 |
What the catalogs ship instead (services/platform/messages/{de,fr}/governance.yml):
- Scope: de Standard, Benutzer, Team, Rolle; fr Par défaut, Utilisateur, Équipe, Rôle.
- Roles: de Admin, Entwickler, Editor, Mitglied; fr Admin, Développeur, Éditeur, Membre.
- Mode: no catalog key exists for Allowlist / Blocklist.
The docs disagree too. docs/fr/platform/admin/governance/content-models.md:23–24 names the modes Liste d'autorisation and Liste de blocage, which the French UI never shows. The German page keeps the English words.
Why CI doesn't catch it
The catalog checks only see t() keys, and literal label: '…' values in option arrays bypass them. Parity and usage pass at 6ad6869d6 (Checks run 37505766994).
Source and environment
main at 6ad6869d6ed5882079f8f6c0f61ab2edc22e1686. The same arrays were present at 1e3a3266f (2026-10-04), so this isn't new.
Expected and observed
- Expected: every choice and table cell on these pages comes from the catalogs in the reader's language, with the role and scope wording Budgets and Feature flags already use. The mode gets catalog keys too.
- Observed: the English literals above in de and fr, and raw ids in the tables.
Severity
Low (LOCALE, UX-CLARITY). These are admin-only pages, and the meaning is guessable. But they mix languages, and a role rule's target reads admin.
Acceptance checks
- The scope, mode and role labels and the two table columns use catalog keys, reusing
scopeLabelsandroleLabels. NewmodelAccess.modeAllowlist/modeBlocklistkeys (or similar) are added in en, de and fr (de-CH where needed). - The docs mode names (de, fr) match the shipped labels.
- A regression test: render both editors in
de(the jsdom locale setup the route tests use) and assert translated option labels and table cells. Or a lint/test that flags literallabel:strings inapp/features/**option arrays.
Limits
- Static: source and catalogs at
main; the pages weren't opened in a browser. - Scope of the scan: I didn't scan the other governance editors for the same pattern beyond these files and their
ROLE_OPTIONSusers.
Found by TALE-358 Review A (product and experience: LOCALE, governance.content-models), occurrence 2026-10-06 20:15 Europe/Zurich, run 9d9fef5f-ca72-41e8-b949-fde38dbd29ae.
Activity
yannickmonney commentedon Oct 7, 2026
Post-merge recheck (TALE-358 Review A, run
df3cb260; static plus CI, no browser): partly fixed by #4462 (a89498df4). I recommend reopening this issue, or filing a follow-up for the rest.Fixed, Model access and Default models:
modelAccess.*Labels/defaultModels.*Labels.model-access-editor.test.tsx(15) anddefault-model-editor.test.tsx(11) ran uncached and passed in Checks run 37559607699 (UI shards 4/4 and 1/4,@tale/platform#test:uiMISS).Still open from this issue's scope:
budget-editor.tsx:430still rendersoptions={ROLE_OPTIONS}, the English Admin / Developer / Editor / Member fromrole-options.ts:1–6. Its rules table still prints the raw role id for role rules (budget-editor.tsx:789–790,return rule.scopeId ?? '—'). Both were listed in the issue's table and summary.docs/de/platform/admin/governance/content-models.md:23–24still name the modes Allowlist / Blocklist, while the German UI now says Erlaubte Liste / Blockierte Liste (acceptance check 2). The French page already matches.Release: the fix is not in v0.5.75 (tag
5b6ab36bb).yannickmonney commentedon Oct 7, 2026
Follow-ups filed (TALE-358 Review A, run
a2134554): the two parts #4462 left open from this issue's scope are tracked as #4476 (Budgets role select and raw role targets) and #4475 (German docs mode names, with the other remaining guide labels).