Internationalize more strings (#2440)

Co-authored-by: Ansh <anshnanda10@gmail.com>
This commit is contained in:
Stanislas Signoud 2024-01-09 23:37:15 +01:00 committed by GitHub
parent aeeacd10d3
commit 008893b911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
108 changed files with 925 additions and 558 deletions

View file

@ -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}

View file

@ -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>

View file

@ -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}

View file

@ -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>

View file

@ -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>