Skip to content

Commit e40478f

Browse files
committed
Translate
1 parent 971afe3 commit e40478f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

static/app/components/group/issueSeerBadge.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
isIssueQuickFixable,
88
} from 'sentry/components/events/autofix/utils';
99
import Link from 'sentry/components/links/link';
10+
import {t} from 'sentry/locale';
1011
import {space} from 'sentry/styles/space';
1112
import type {Group} from 'sentry/types/group';
1213
import useOrganization from 'sentry/utils/useOrganization';
@@ -28,11 +29,11 @@ function IssueSeerBadge({group}: IssueSeerBadgeProps) {
2829

2930
let seerTitle = null;
3031
if (autofixRunExists && seerFixable) {
31-
seerTitle = 'Seer has a potential quick fix for this issue';
32+
seerTitle = t('Seer has a potential quick fix for this issue');
3233
} else if (autofixRunExists) {
33-
seerTitle = 'Seer has insight into this issue';
34+
seerTitle = t('Seer has insight into this issue');
3435
} else if (seerFixable) {
35-
seerTitle = 'This issue might be quick to fix';
36+
seerTitle = t('This issue might be quick to fix');
3637
}
3738

3839
if (!showSeer) {
@@ -43,7 +44,7 @@ function IssueSeerBadge({group}: IssueSeerBadgeProps) {
4344
<Tooltip title={seerTitle} skipWrapper>
4445
<SeerLink to={{pathname: `${issuesPath}${group.id}`, query: {seerDrawer: true}}}>
4546
<SeerIcon size="sm" />
46-
{seerFixable && <p>Quick Fix</p>}
47+
{seerFixable && <p>{t('Quick Fix')}</p>}
4748
</SeerLink>
4849
</Tooltip>
4950
);

static/app/views/issueDetails/streamline/header/seerBadge.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import styled from '@emotion/styled';
33
import {SeerIcon} from 'sentry/components/ai/SeerIcon';
44
import {Tooltip} from 'sentry/components/core/tooltip';
55
import {isIssueQuickFixable} from 'sentry/components/events/autofix/utils';
6+
import {t} from 'sentry/locale';
67
import {space} from 'sentry/styles/space';
78
import type {Group} from 'sentry/types/group';
89
import useOrganization from 'sentry/utils/useOrganization';
@@ -21,11 +22,11 @@ function SeerBadge({group}: {group: Group}) {
2122
}
2223

2324
return (
24-
<Tooltip title={'This issue might be quick to fix'} skipWrapper>
25+
<Tooltip title={t('This issue might be quick to fix')} skipWrapper>
2526
<Wrapper>
2627
<Divider />
2728
<SeerIcon size="sm" />
28-
{seerFixable && <span>Quick Fix</span>}
29+
{seerFixable && <span>{t('Quick Fix')}</span>}
2930
</Wrapper>
3031
</Tooltip>
3132
);

0 commit comments

Comments
 (0)