File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
static/app/components/infiniteList Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import {Fragment} from 'react';
2
2
import type { UseInfiniteQueryResult , UseQueryResult } from '@tanstack/react-query' ;
3
3
4
4
import type { ApiResult } from 'sentry/api' ;
5
+ import { t } from 'sentry/locale' ;
5
6
6
7
interface Props < Data > {
7
8
children : React . ReactNode ;
@@ -47,13 +48,13 @@ export default function InfiniteListState<Data>({
47
48
}
48
49
49
50
function LoadingMessage ( ) {
50
- return < p > Loading...</ p > ;
51
+ return < p > { t ( ' Loading...' ) } </ p > ;
51
52
}
52
53
53
54
function ErrorMessage ( { error} : { error : Error } ) {
54
- return < p > Error: { error . message } </ p > ;
55
+ return < p > { t ( ' Error: %s' , error . message ) } </ p > ;
55
56
}
56
57
57
58
function BackgroundUpdatingMessage ( ) {
58
- return < footer > Background Updating...</ footer > ;
59
+ return < footer > { t ( ' Background Updating...' ) } </ footer > ;
59
60
}
You can’t perform that action at this time.
0 commit comments