You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i18n(platform): the Budgets editor still shows English role names and raw role ids (follow-up to #4455) #4476
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 (main524e438626f8cf156c9c8b86a5223dc55d5d6b8f)
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:
governance.featureFlags.roleLabels.*, used by Feature flags;
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.
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).
Post-merge recheck of #4478 at main82cedad75306ed4035cb2ae239af1e3f7b3fad79 (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 governancefeatureFlags.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.
Activity
yannickmonney commentedon Oct 7, 2026
Post-merge recheck of #4478 at
main82cedad75306ed4035cb2ae239af1e3f7b3fad79(TALE-358 Review A, rund9f2b9f7). Static source, plus executed CI.budget-editor.tsxmapsROLE_OPTIONSvalues togovernancefeatureFlags.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 "—".debudget-editor.test.tsx"localizes role options and table targets (%s) (#4476)" passed uncached in Checks 37631629846 (UI shards).role-options.tswithout display labelsNot checked: the editor in a browser.