File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 7
7
isIssueQuickFixable ,
8
8
} from 'sentry/components/events/autofix/utils' ;
9
9
import Link from 'sentry/components/links/link' ;
10
+ import { t } from 'sentry/locale' ;
10
11
import { space } from 'sentry/styles/space' ;
11
12
import type { Group } from 'sentry/types/group' ;
12
13
import useOrganization from 'sentry/utils/useOrganization' ;
@@ -28,11 +29,11 @@ function IssueSeerBadge({group}: IssueSeerBadgeProps) {
28
29
29
30
let seerTitle = null ;
30
31
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' ) ;
32
33
} else if ( autofixRunExists ) {
33
- seerTitle = 'Seer has insight into this issue' ;
34
+ seerTitle = t ( 'Seer has insight into this issue' ) ;
34
35
} else if ( seerFixable ) {
35
- seerTitle = 'This issue might be quick to fix' ;
36
+ seerTitle = t ( 'This issue might be quick to fix' ) ;
36
37
}
37
38
38
39
if ( ! showSeer ) {
@@ -43,7 +44,7 @@ function IssueSeerBadge({group}: IssueSeerBadgeProps) {
43
44
< Tooltip title = { seerTitle } skipWrapper >
44
45
< SeerLink to = { { pathname : `${ issuesPath } ${ group . id } ` , query : { seerDrawer : true } } } >
45
46
< SeerIcon size = "sm" />
46
- { seerFixable && < p > Quick Fix</ p > }
47
+ { seerFixable && < p > { t ( ' Quick Fix' ) } </ p > }
47
48
</ SeerLink >
48
49
</ Tooltip >
49
50
) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import styled from '@emotion/styled';
3
3
import { SeerIcon } from 'sentry/components/ai/SeerIcon' ;
4
4
import { Tooltip } from 'sentry/components/core/tooltip' ;
5
5
import { isIssueQuickFixable } from 'sentry/components/events/autofix/utils' ;
6
+ import { t } from 'sentry/locale' ;
6
7
import { space } from 'sentry/styles/space' ;
7
8
import type { Group } from 'sentry/types/group' ;
8
9
import useOrganization from 'sentry/utils/useOrganization' ;
@@ -21,11 +22,11 @@ function SeerBadge({group}: {group: Group}) {
21
22
}
22
23
23
24
return (
24
- < Tooltip title = { 'This issue might be quick to fix' } skipWrapper >
25
+ < Tooltip title = { t ( 'This issue might be quick to fix' ) } skipWrapper >
25
26
< Wrapper >
26
27
< Divider />
27
28
< SeerIcon size = "sm" />
28
- { seerFixable && < span > Quick Fix</ span > }
29
+ { seerFixable && < span > { t ( ' Quick Fix' ) } </ span > }
29
30
</ Wrapper >
30
31
</ Tooltip >
31
32
) ;
You can’t perform that action at this time.
0 commit comments