From 4e8f13605207b83dcbf4da1bcf739ae3fdc29fcd Mon Sep 17 00:00:00 2001 From: Evgenii Date: Tue, 4 Aug 2026 01:44:30 -0700 Subject: [PATCH] fix(i18n): localize the integration card status pills (#12208) Every card under Settings -> Integrations built its status pill from bare literals inside the JSX call, so the pill stayed English beside a translated description. audit-localization-coverage.mjs inspects JSX attributes and object properties, not conditional expressions handed to a prop, so the gate stayed green while the strings shipped untranslated. The three token-configured cards share tokenProviderStatusLabel(); Gitea passes optional: true because it works read-only without a token, which is why its unconfigured state reads Optional setup rather than Not configured. Co-authored-by: Evgenii --- .../settings/jira-integration-card.tsx | 9 +++- .../task-tracker-integration-cards.tsx | 12 ++++- ...token-source-control-integration-cards.tsx | 44 ++++++------------- .../settings/token-source-control-status.ts | 39 ++++++++++++++++ ...tegration-card-status-localization.test.ts | 44 +++++++++++++++++++ src/renderer/src/i18n/locales/en.json | 16 +++++-- 6 files changed, 128 insertions(+), 36 deletions(-) create mode 100644 src/renderer/src/components/settings/token-source-control-status.ts create mode 100644 src/renderer/src/i18n/integration-card-status-localization.test.ts diff --git a/src/renderer/src/components/settings/jira-integration-card.tsx b/src/renderer/src/components/settings/jira-integration-card.tsx index e1889c2f073..e9f510628c6 100644 --- a/src/renderer/src/components/settings/jira-integration-card.tsx +++ b/src/renderer/src/components/settings/jira-integration-card.tsx @@ -99,7 +99,14 @@ export function JiraIntegrationCard(): React.JSX.Element { } checking={checking} statusTone={connected ? 'connected' : 'attention'} - statusLabel={connected ? 'Connected' : 'Not connected'} + statusLabel={ + connected + ? translate('auto.components.settings.jira.integration.card.statusConnected', 'Connected') + : translate( + 'auto.components.settings.jira.integration.card.statusNotConnected', + 'Not connected' + ) + } actions={ !checking ? (