diff options
author | Ansh <anshnanda10@gmail.com> | 2023-11-20 13:29:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 13:29:27 -0800 |
commit | c5b6f88e9a694d79126af4f742e66833dfd528bd (patch) | |
tree | 0bfdc49ace558adc3d9d5a76fc4726f16f853d4e /src/view/screens/ModerationMutedAccounts.tsx | |
parent | 019aae5f01cb7b503d242917ae0092c2818f3b71 (diff) | |
download | voidsky-c5b6f88e9a694d79126af4f742e66833dfd528bd.tar.zst |
Hindi Internationalization (#1914)
* get basic hindi support to work * get web app language switcher in * Refactor i18n implementation and remove unused code * add missing strings * add dropdowns and modals missing strings * complete all hindi translations * fix merge conflicts * fix legeacy persisted state * fix data in RecommendedFeeds * fix lint
Diffstat (limited to 'src/view/screens/ModerationMutedAccounts.tsx')
-rw-r--r-- | src/view/screens/ModerationMutedAccounts.tsx | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/view/screens/ModerationMutedAccounts.tsx b/src/view/screens/ModerationMutedAccounts.tsx index fe0b4bf14..36bcbf1fa 100644 --- a/src/view/screens/ModerationMutedAccounts.tsx +++ b/src/view/screens/ModerationMutedAccounts.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 {useMyMutedAccountsQuery} from '#/state/queries/my-muted-accounts' import {cleanError} from '#/lib/strings/errors' @@ -31,6 +33,7 @@ type Props = NativeStackScreenProps< export const ModerationMutedAccounts = withAuthRequired( function ModerationMutedAccountsImpl({}: Props) { const pal = usePalette('default') + const {_} = useLingui() const setMinimalShellMode = useSetMinimalShellMode() const {isTabletOrDesktop} = useWebMediaQueries() const {screen} = useAnalytics() @@ -104,7 +107,7 @@ export const ModerationMutedAccounts = withAuthRequired( pal.border, ]} testID="mutedAccountsScreen"> - <ViewHeader title="Muted Accounts" showOnDesktop /> + <ViewHeader title={_(msg`Muted Accounts`)} showOnDesktop /> <Text type="sm" style={[ @@ -112,8 +115,10 @@ export const ModerationMutedAccounts = withAuthRequired( pal.text, isTabletOrDesktop && styles.descriptionDesktop, ]}> - Muted accounts have their posts removed from your feed and from your - notifications. Mutes are completely private. + <Trans> + Muted accounts have their posts removed from your feed and from your + notifications. Mutes are completely private. + </Trans> </Text> {isEmpty ? ( <View style={[pal.border, !isTabletOrDesktop && styles.flex1]}> @@ -126,9 +131,11 @@ export const ModerationMutedAccounts = withAuthRequired( ) : ( <View style={[styles.empty, pal.viewLight]}> <Text type="lg" style={[pal.text, styles.emptyText]}> - You have not muted any accounts yet. To mute an account, go to - their profile and selected "Mute account" from the menu on - their account. + <Trans> + You have not muted any accounts yet. To mute an account, go + to their profile and selected "Mute account" from the menu + on their account. + </Trans> </Text> </View> )} |