diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-03-19 12:29:57 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2024-03-19 12:29:57 -0700 |
commit | 9e4f81b156456d96ab22e3c5dc0e0c66929c7bd0 (patch) | |
tree | 3c789effa60a94dc524a530ddf1e2b8950942906 /src/components | |
parent | dac73cbeea3c346c255eec15d08bd9c585263bec (diff) | |
parent | 14982b93938c5b4141408e9b0887b261469eed4f (diff) | |
download | voidsky-9e4f81b156456d96ab22e3c5dc0e0c66929c7bd0.tar.zst |
Merge branch 'quiple-patch-3' into main
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> </> )} |