Fix hardcoded user-facing strings across policy and resource action hooks
#625 opened on Jul 10, 2026
Repository metrics
- Stars
- (10 stars)
- PR merge metrics
- (PR metrics pending)
Description
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.