Update FeedItem.tsx

This commit is contained in:
Minseo Lee
2024-05-10 20:06:54 +09:00
parent 477e7de2bc
commit 490fa7b128
+6 -5
View File
@@ -22,7 +22,7 @@ import {
FontAwesomeIconStyle, FontAwesomeIconStyle,
Props, Props,
} from '@fortawesome/react-native-fontawesome' } from '@fortawesome/react-native-fontawesome'
import {msg, plural, Trans} from '@lingui/macro' import {msg, Plural, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import {useQueryClient} from '@tanstack/react-query' import {useQueryClient} from '@tanstack/react-query'
@@ -234,10 +234,11 @@ let FeedItem = ({
<Trans context="notification"> <Trans context="notification">
<Text style={[pal.text]}> and </Text> <Text style={[pal.text]}> and </Text>
<Text style={[pal.text, s.bold]}> <Text style={[pal.text, s.bold]}>
{plural(authors.length - 1, { <Plural
one: `${formattedCount} other`, value={authors.length - 1}
other: `${formattedCount} others`, one="# other"
})} other="# others"
/>
</Text> </Text>
</Trans> </Trans>
) : undefined} ) : undefined}