Internationalize more strings (#2440)
Co-authored-by: Ansh <anshnanda10@gmail.com>
This commit is contained in:
parent
aeeacd10d3
commit
008893b911
108 changed files with 925 additions and 558 deletions
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue