Kuadrant/kuadrant-console-plugin

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

Open

#625 aperta il 10 lug 2026

Vedi su GitHub
 (0 commenti) (0 reazioni) (1 assegnatario)TypeScript (63 fork)auto 404
enhancementgood first issuetriage/accepted

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 — 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.

Guida contributor