diff options
Diffstat (limited to 'src/view/shell/Drawer.tsx')
-rw-r--r-- | src/view/shell/Drawer.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 2a070bf87..da98b2643 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -1,7 +1,7 @@ import React, {ComponentProps} from 'react' import {Linking, ScrollView, TouchableOpacity, View} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' -import {msg, Plural, Trans} from '@lingui/macro' +import {msg, Plural, plural, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {StackActions, useNavigation} from '@react-navigation/native' @@ -450,7 +450,12 @@ let NotificationsMenuItem = ({ accessibilityHint={ numUnreadNotifications === '' ? '' - : _(msg`${numUnreadNotifications} unread`) + : _( + msg`${plural(numUnreadNotifications ?? 0, { + one: '# unread item', + other: '# unread items', + })}` || '', + ) } count={numUnreadNotifications} bold={isActive} |