-
Bug
-
Resolution: Unresolved
-
Undefined
-
1.8.0
-
2
-
False
-
-
False
-
-
-
RHDH F&UI plugins 3281
-
Low
Description of problem:
In the MyGroupsSidebarItem component, pluralization is currently handled by appending an *"s" *to the translated string. This approach does not work for many languages, since pluralization rules differ and cannot be hardcoded.
<MyGroupsSidebarItem key={menuItem.name} icon={renderIcon(menuItem.icon ?? '')} singularTitle={translatedText} pluralTitle={`${translatedText}s`} />
Prerequisites (if any, like setup, operators/versions):
- RHDH with i18n enabled.
- A language other than English (where pluralization may not use "s").
Steps to Reproduce
- Switch the application language to a non-English locale (e.g., French, German, Japanese).
- Navigate to the sidebar where MyGroupsSidebarItem is rendered.
- Observe the plural label.
Actual results:
Pluralization is done by simply appending "s", which produces incorrect translations in non-English locales.
Expected results:
Pluralization should use proper i18n pluralization rules provided by the translation library (e.g., i18next plural forms or backstage ), rather than hardcoding "s".
Reproducibility (Always/Intermittent/Only Once):
Always
- relates to
-
RHIDP-8260 Localize (add translation support) for the sidebar and core plugins that shows strings mostly from the app-config
-
- Dev Complete
-