Display post counts greater than 1,000 (#11242)
This commit is contained in:
@@ -215,14 +215,10 @@ function TrendRow({
|
|||||||
<Text
|
<Text
|
||||||
style={[a.text_sm, t.atoms.text_contrast_medium]}
|
style={[a.text_sm, t.atoms.text_contrast_medium]}
|
||||||
numberOfLines={1}>
|
numberOfLines={1}>
|
||||||
{trend.postCount >= 1000 ? (
|
<Trans comment="'{postCount} {posts}', e.g., '1.2K posts'">
|
||||||
<Trans comment="Over 1,000 posts">1K+ posts</Trans>
|
{formatCount(i18n, trend.postCount)}{' '}
|
||||||
) : (
|
{plural(trend.postCount, {one: 'post', other: 'posts'})}
|
||||||
<Trans comment="'{postCount} {posts}', e.g., '1.2K posts'">
|
</Trans>
|
||||||
{formatCount(i18n, trend.postCount)}{' '}
|
|
||||||
{plural(trend.postCount, {one: 'post', other: 'posts'})}
|
|
||||||
</Trans>
|
|
||||||
)}
|
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -145,14 +145,10 @@ export function TrendRow({
|
|||||||
<Text
|
<Text
|
||||||
style={[a.text_sm, t.atoms.text_contrast_medium]}
|
style={[a.text_sm, t.atoms.text_contrast_medium]}
|
||||||
numberOfLines={1}>
|
numberOfLines={1}>
|
||||||
{trend.postCount >= 1000 ? (
|
<Trans comment="'{postCount} {posts}', e.g., '1.2K posts'">
|
||||||
<Trans comment="Over 1,000 posts">1K+ posts</Trans>
|
{formatCount(i18n, trend.postCount)}{' '}
|
||||||
) : (
|
{plural(trend.postCount, {one: 'post', other: 'posts'})}
|
||||||
<Trans comment="'{postCount} {posts}', e.g., '1.2K posts'">
|
</Trans>
|
||||||
{formatCount(i18n, trend.postCount)}{' '}
|
|
||||||
{plural(trend.postCount, {one: 'post', other: 'posts'})}
|
|
||||||
</Trans>
|
|
||||||
)}
|
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user