diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Lists.tsx | 8 | ||||
-rw-r--r-- | src/components/Menu/index.tsx | 6 | ||||
-rw-r--r-- | src/components/TagMenu/index.tsx | 4 |
3 files changed, 12 insertions, 6 deletions
diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx index a74484b71..8e4a58007 100644 --- a/src/components/Lists.tsx +++ b/src/components/Lists.tsx @@ -2,10 +2,10 @@ import React from 'react' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {View} from 'react-native' import {useLingui} from '@lingui/react' +import {Trans, msg} from '@lingui/macro' import {CenteredView} from 'view/com/util/Views' import {Loader} from '#/components/Loader' -import {msg, Trans} from '@lingui/macro' import {cleanError} from 'lib/strings/errors' import {Button} from '#/components/Button' import {Text} from '#/components/Typography' @@ -59,6 +59,7 @@ function ListFooterMaybeError({ onRetry?: () => Promise<unknown> }) { const t = useTheme() + const {_} = useLingui() if (!isError) return null @@ -84,7 +85,7 @@ function ListFooterMaybeError({ </Text> <Button variant="gradient" - label="Press to retry" + label={_(msg`Press to retry`)} style={[ a.align_center, a.justify_center, @@ -94,7 +95,7 @@ function ListFooterMaybeError({ a.py_sm, ]} onPress={onRetry}> - Retry + <Trans>Retry</Trans> </Button> </View> </View> @@ -149,6 +150,7 @@ export function ListMaybePlaceholder({ const t = useTheme() const {_} = useLingui() const {gtMobile, gtTablet} = useBreakpoints() + const {_} = useLingui() if (!isLoading && isError) { return ( diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx index 9be9dd86b..051e95b95 100644 --- a/src/components/Menu/index.tsx +++ b/src/components/Menu/index.tsx @@ -17,7 +17,7 @@ import { ItemIconProps, } from '#/components/Menu/types' import {Button, ButtonText} from '#/components/Button' -import {msg} from '@lingui/macro' +import {Trans, msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {isNative} from 'platform/detection' @@ -209,7 +209,9 @@ function Cancel() { variant="ghost" color="secondary" onPress={() => control.close()}> - <ButtonText>Cancel</ButtonText> + <ButtonText> + <Trans>Cancel</Trans> + </ButtonText> </Button> ) } diff --git a/src/components/TagMenu/index.tsx b/src/components/TagMenu/index.tsx index 13e4e7d6b..0ed703667 100644 --- a/src/components/TagMenu/index.tsx +++ b/src/components/TagMenu/index.tsx @@ -264,7 +264,9 @@ export function TagMenu({ variant="ghost" color="secondary" onPress={() => control.close()}> - <ButtonText>Cancel</ButtonText> + <ButtonText> + <Trans>Cancel</Trans> + </ButtonText> </Button> </> )} |