Skip to content

Commit cc53dd5

Browse files
committed
UnreadNotice: Pass values in pluralized unread-count string, fixing bug
Starting in the unreleased commit 35129e5, the unread notice would literally say: {unreadCount, plural, one {{unreadCount} unread message} other {{unreadCount} unread messages} } because we forgot to give `values`. Oops; fixed now.
1 parent 459dec1 commit cc53dd5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/chat/UnreadNotice.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ export default function UnreadNotice(props: Props): Node {
4949
<View style={styles.unreadTextWrapper}>
5050
<ZulipTextIntl
5151
style={styles.unreadText}
52-
text={`\
52+
text={{
53+
text: `\
5354
{unreadCount, plural,
5455
one {{unreadCount} unread message}
5556
other {{unreadCount} unread messages}
56-
}`}
57+
}`,
58+
values: { unreadCount },
59+
}}
5760
/>
5861
</View>
5962
<MarkAsReadButton narrow={narrow} />

0 commit comments

Comments
 (0)