diff options
author | Stanislas Signoud <signez@stanisoft.net> | 2024-01-09 23:37:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-09 14:37:15 -0800 |
commit | 008893b911c354ea70fbb4ceacefe2dafc7567b9 (patch) | |
tree | 817a76b7a5a3b324db025b0d9c9c2647bde5ce6e /src/view/shell | |
parent | aeeacd10d322a6e599631c500de03172d69984de (diff) | |
download | voidsky-008893b911c354ea70fbb4ceacefe2dafc7567b9.tar.zst |
Internationalize more strings (#2440)
Co-authored-by: Ansh <anshnanda10@gmail.com>
Diffstat (limited to 'src/view/shell')
-rw-r--r-- | src/view/shell/Drawer.tsx | 6 | ||||
-rw-r--r-- | src/view/shell/desktop/LeftNav.tsx | 2 | ||||
-rw-r--r-- | src/view/shell/desktop/RightNav.tsx | 2 | ||||
-rw-r--r-- | src/view/shell/desktop/Search.tsx | 2 | ||||
-rw-r--r-- | src/view/shell/index.web.tsx | 2 |
5 files changed, 8 insertions, 6 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 14bc6af26..6f748755a 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -68,7 +68,7 @@ let DrawerProfileCard = ({ <TouchableOpacity testID="profileCardButton" accessibilityLabel={_(msg`Profile`)} - accessibilityHint="Navigates to your profile" + accessibilityHint={_(msg`Navigates to your profile`)} onPress={onPressProfile}> <UserAvatar size={80} @@ -435,7 +435,9 @@ let NotificationsMenuItem = ({ label={_(msg`Notifications`)} accessibilityLabel={_(msg`Notifications`)} accessibilityHint={ - numUnreadNotifications === '' ? '' : `${numUnreadNotifications} unread` + numUnreadNotifications === '' + ? '' + : _(msg`${numUnreadNotifications} unread`) } count={numUnreadNotifications} bold={isActive} diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx index 3925b5180..c84e86b95 100644 --- a/src/view/shell/desktop/LeftNav.tsx +++ b/src/view/shell/desktop/LeftNav.tsx @@ -255,7 +255,7 @@ function ComposeBtn() { /> </View> <Text type="button" style={styles.newPostBtnLabel}> - <Trans>New Post</Trans> + <Trans context="action">New Post</Trans> </Text> </TouchableOpacity> </View> diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 894624a6e..842991d6f 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -56,7 +56,7 @@ export function DesktopRightNav({routeName}: {routeName: string}) { {isSandbox ? ( <View style={[palError.view, styles.messageLine, s.p10]}> <Text type="md" style={[palError.text, s.bold]}> - SANDBOX. Posts and accounts are not permanent. + <Trans>SANDBOX. Posts and accounts are not permanent.</Trans> </Text> </View> ) : undefined} diff --git a/src/view/shell/desktop/Search.tsx b/src/view/shell/desktop/Search.tsx index 6201f828f..f2a3de424 100644 --- a/src/view/shell/desktop/Search.tsx +++ b/src/view/shell/desktop/Search.tsx @@ -176,7 +176,7 @@ export function DesktopSearch() { onPress={onPressCancelSearch} accessibilityRole="button" accessibilityLabel={_(msg`Cancel search`)} - accessibilityHint="Exits inputting search query" + accessibilityHint={_(msg`Exits inputting search query`)} onAccessibilityEscape={onPressCancelSearch}> <Text type="lg" style={[pal.link]}> <Trans>Cancel</Trans> diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 38da860bd..20bc0dff1 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -47,7 +47,7 @@ function ShellInner() { onPress={() => setDrawerOpen(false)} style={styles.drawerMask} accessibilityLabel={t`Close navigation footer`} - accessibilityHint="Closes bottom navigation bar"> + accessibilityHint={t`Closes bottom navigation bar`}> <View style={styles.drawerContainer}> <DrawerContent /> </View> |