Skip to content

Commit 9e98040

Browse files
roggenkemperclaude
andcommitted
fix(issue-detection): Wrap AI Issue Detection title in t() for i18n
Use a shared constant for the title so the admin field map key, label, and section title all reference the same translated string. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6ad38fc commit 9e98040

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

static/app/views/settings/projectPerformance/projectPerformance.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ export function ProjectPerformance() {
203203
const hasAIIssueDetection =
204204
organization.features.includes('gen-ai-features') &&
205205
organization.features.includes('ai-issue-detection');
206+
const aiIssueDetectionTitle = t('AI Issue Detection');
206207

207208
const {
208209
data: threshold,
@@ -600,10 +601,10 @@ export function ProjectPerformance() {
600601
},
601602
visible: hasWebVitalsSeerSuggestions,
602603
},
603-
['AI Issue Detection']: {
604+
[aiIssueDetectionTitle]: {
604605
name: DetectorConfigAdmin.AI_ISSUE_DETECTION_ENABLED,
605606
type: 'boolean',
606-
label: t('AI Issue Detection'),
607+
label: aiIssueDetectionTitle,
607608
help: t('Controls whether or not Sentry runs AI issue detection on your traces.'),
608609
defaultValue: true,
609610
onChange: value => {
@@ -1051,7 +1052,7 @@ export function ProjectPerformance() {
10511052
initiallyCollapsed: issueType !== IssueType.WEB_VITALS,
10521053
},
10531054
{
1054-
title: 'AI Issue Detection',
1055+
title: aiIssueDetectionTitle,
10551056
fields: [
10561057
{
10571058
name: DetectorConfigAdmin.AI_DETECTED_HTTP_ENABLED,

0 commit comments

Comments
 (0)