fix(users-permissions): fix role notification translations#26933
Conversation
|
This PR has been added to our community triage board as CPR-436. |
innerdvations
left a comment
There was a problem hiding this comment.
I think this one should remain as 'created'
|
Size Change: +12.2 kB (+0.37%) Total Size: 3.35 MB 📦 View Changed
ℹ️ View Unchanged
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThe role edit success notification in EditPage.jsx now references the "edited" translation id instead of "created". A new translation entry, "Settings.roles.created", is added to en.json for the role creation notification. ChangesRole notification translation fix
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thanks for the update — the translation fix looks good and CI is green. One last step before we can merge: could you please sign the Contributor License Agreement? Once that’s done, we should be clear to merge. AI-assisted comment. |
What does it do?
Fixes incorrect translation keys used in users-permissions role notifications.
Changes made:
Settings.roles.createdtranslation key inen.json.EditPage.jsxto useSettings.roles.editedinstead ofSettings.roles.created.Why is it needed?
In Strapi v5, the edit role notification was using the wrong translation key (
Settings.roles.created), and the created role notification key was missing from the translation catalog.Because of this, localised messages were not displayed, and the default English message was always shown.
How to test it?
Environment:
Steps:
yarn build.Related issue(s)/PR(s)
Fixes #26917
Fixes CPR-436