Kuadrant/kuadrant-console-plugin
Fix hardcoded user-facing strings across policy and resource action hooks
已关闭
#625 创建于 2026年7月10日
enhancementgood first issuetriage/accepted
仓库指标
- 星标
- (10 个星标)
- PR 合并指标
- (平均合并 2天 23小时) (30 天内合并 53 个 PR)
描述
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.