Skip to content

i18n(platform): the Budgets editor still shows English role names and raw role ids (follow-up to #4455) #4476

Closed

Description

@yannickmonney

Summary

This is the follow-up for the part of #4455 that #4462 didn't change. #4462 localized the scope, mode and role labels in the Model access and Default models editors. The Budgets editor on Governance → Policies & limits still uses the shared English role list:

  • its Role select shows Admin / Developer / Editor / Member in German and French;
  • its rules table shows a role rule's target as the raw id (admin, developer) in every locale.
What Where (main 524e438626f8cf156c9c8b86a5223dc55d5d6b8f)
Role select options services/platform/app/features/settings/governance/components/budget-editor.tsx:430, options={ROLE_OPTIONS} (role-options.ts:1–6, literal English labels)
Role target in the rules table budget-editor.tsx:789–790, case 'role': return rule.scopeId ?? '—'

Translated role labels already ship:

In those: de Entwickler, Mitglied; fr Développeur, Éditeur, Membre. The Budgets scope column is already translated (budgets.scopeLabels.*, :947).

Expected and observed

  • Expected: the Budgets role select and the role target column use translated role labels, as the other three governance editors now do.
  • Observed: English option labels, and raw role ids in the table.

Severity

Low (LOCALE, UX-CLARITY; governance.policies-limits).

Acceptance checks

  1. budget-editor.tsx builds its role options and the role target from catalog keys, for example budgets.roleLabels.* in en/de/fr or a shared role-label key.
  2. A jsdom test renders the Budgets editor in de and asserts the translated role option and table target, like the fix: localize governance model access labels #4462 regressions.
  3. Optional: role-options.ts no longer carries display labels, so no editor can render them untranslated.

Limits

  • Static: source and catalogs at main; not opened in a browser.

Found by TALE-358 Review A (product and experience: LOCALE), occurrence 2026-10-07 08:15 Europe/Zurich, run a2134554-8051-4e67-bb1f-10adfe0525d9. Follow-up to #4455 (recheck comment 6029518381).

Activity

  1. yannickmonney commented on Oct 7, 2026

    @yannickmonney
    ContributorAuthor

    Post-merge recheck of #4478 at main 82cedad75306ed4035cb2ae239af1e3f7b3fad79 (TALE-358 Review A, run d9f2b9f7). Static source, plus executed CI.

    Acceptance check Result
    1. Role options and the role target come from catalog keys Met. budget-editor.tsx maps ROLE_OPTIONS values to governance featureFlags.roleLabels.* for both the select and the rules table. An unknown id falls back to the raw id, and a role rule without a target shows "—".
    2. A jsdom test in de Met, in en/de/fr. budget-editor.test.tsx "localizes role options and table targets (%s) (#4476)" passed uncached in Checks 37631629846 (UI shards).
    3. Optional: role-options.ts without display labels Not done: it still carries English labels, now unused by Budgets.

    Not checked: the editor in a browser.

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