Skip to content

i18n(platform): Governance Model access and Default models show hard-coded English scope, mode and role names in German and French #4455

Closed

Description

@yannickmonney

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

  1. The scope, mode and role labels and the two table columns use catalog keys, reusing scopeLabels and roleLabels. New modelAccess.modeAllowlist / modeBlocklist keys (or similar) are added in en, de and fr (de-CH where needed).
  2. The docs mode names (de, fr) match the shipped labels.
  3. 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 literal label: strings in app/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_OPTIONS users.

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

  1. yannickmonney commented on Oct 7, 2026

    @yannickmonney
    ContributorAuthor

    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:

    • Options: the scope, mode and role options are built from modelAccess.*Labels / defaultModels.*Labels.
      • de: Standard / Benutzer / Team / Rolle, Erlaubte Liste / Blockierte Liste, Entwickler / Mitglied.
      • fr: Par défaut / Utilisateur / Équipe / Rôle, Liste d'autorisation / Liste de blocage, Développeur / Membre.
    • Tables: the rules tables translate the scope column, and the Model access target column shows the translated role.
    • Tests: model-access-editor.test.tsx (15) and default-model-editor.test.tsx (11) ran uncached and passed in Checks run 37559607699 (UI shards 4/4 and 1/4, @tale/platform#test:ui MISS).

    Still open from this issue's scope:

    1. Budgets. budget-editor.tsx:430 still renders options={ROLE_OPTIONS}, the English Admin / Developer / Editor / Member from role-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.
    2. German docs. docs/de/platform/admin/governance/content-models.md:23–24 still 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).

  2. yannickmonney commented on Oct 7, 2026

    @yannickmonney
    ContributorAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions