diff options
Diffstat (limited to 'src/view/screens/ModerationBlockedAccounts.tsx')
-rw-r--r-- | src/view/screens/ModerationBlockedAccounts.tsx | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/view/screens/ModerationBlockedAccounts.tsx b/src/view/screens/ModerationBlockedAccounts.tsx index 702a8d44e..1c592dde8 100644 --- a/src/view/screens/ModerationBlockedAccounts.tsx +++ b/src/view/screens/ModerationBlockedAccounts.tsx @@ -21,6 +21,8 @@ import {ErrorScreen} from '../com/util/error/ErrorScreen' import {ProfileCard} from 'view/com/profile/ProfileCard' import {logger} from '#/logger' import {useSetMinimalShellMode} from '#/state/shell' +import {Trans, msg} from '@lingui/macro' +import {useLingui} from '@lingui/react' import {useMyBlockedAccountsQuery} from '#/state/queries/my-blocked-accounts' import {cleanError} from '#/lib/strings/errors' @@ -31,6 +33,7 @@ type Props = NativeStackScreenProps< export const ModerationBlockedAccounts = withAuthRequired( function ModerationBlockedAccountsImpl({}: Props) { const pal = usePalette('default') + const {_} = useLingui() const setMinimalShellMode = useSetMinimalShellMode() const {isTabletOrDesktop} = useWebMediaQueries() const {screen} = useAnalytics() @@ -104,7 +107,7 @@ export const ModerationBlockedAccounts = withAuthRequired( pal.border, ]} testID="blockedAccountsScreen"> - <ViewHeader title="Blocked Accounts" showOnDesktop /> + <ViewHeader title={_(msg`Blocked Accounts`)} showOnDesktop /> <Text type="sm" style={[ @@ -112,9 +115,11 @@ export const ModerationBlockedAccounts = withAuthRequired( pal.text, isTabletOrDesktop && styles.descriptionDesktop, ]}> - Blocked accounts cannot reply in your threads, mention you, or - otherwise interact with you. You will not see their content and they - will be prevented from seeing yours. + <Trans> + Blocked accounts cannot reply in your threads, mention you, or + otherwise interact with you. You will not see their content and they + will be prevented from seeing yours. + </Trans> </Text> {isEmpty ? ( <View style={[pal.border, !isTabletOrDesktop && styles.flex1]}> @@ -127,9 +132,11 @@ export const ModerationBlockedAccounts = withAuthRequired( ) : ( <View style={[styles.empty, pal.viewLight]}> <Text type="lg" style={[pal.text, styles.emptyText]}> - You have not blocked any accounts yet. To block an account, go - to their profile and selected "Block account" from the menu on - their account. + <Trans> + You have not blocked any accounts yet. To block an account, + go to their profile and selected "Block account" from the + menu on their account. + </Trans> </Text> </View> )} |