Kuadrant/kuadrant-console-plugin

Fix hardcoded user-facing strings across policy and resource action hooks

Open

#625 opened on Jul 10, 2026

View on GitHub
 (0 comments) (0 reactions) (1 assignee)TypeScript (63 forks)auto 404
enhancementgood first issuetriage/accepted

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 — same
  • useOIDCPolicyActions.tsx — same
  • useTokenRateLimitPolicyActions.tsx — same
  • useAPIProductActions.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.

Contributor guide