Fix hardcoded user-facing strings across policy and resource action hooks
#625 aperta il 10 lug 2026
Metriche repository
- Star
- (10 star)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Summary
Multiple user-facing strings are hardcoded throughout the plugin without being wrapped in the useTranslation t() function, making them untranslatable.
Motivation
The plugin uses i18next for all user-facing strings, but several components bypass this pattern. These need to be consistent before the plugin can be properly localised.
Proposed Solution
Wrap all affected strings with t() and add corresponding keys to locales/en/plugin__kuadrant-console-plugin.json.
Affected Files
Action hooks — label and description strings
useDNSPolicyActions.tsx—'Edit labels','Edit annotations','Edit','Delete'useTLSPolicyActions.tsx— sameuseOIDCPolicyActions.tsx— sameuseTokenRateLimitPolicyActions.tsx— sameuseAPIProductActions.tsx—'Edit labels','Edit annotations','Edit APIProduct','Delete APIProduct'
Other components
There are also other hardcoded placeholder and aria-label strings across the policy creation form components that should be wrapped with t().
Additional Context
Identified during review of #575. Fix all in one PR for consistency.