Display post counts greater than 1,000 (#11242)

This commit is contained in:
DS Boyce
2026-07-23 10:26:47 -07:00
committed by GitHub
parent 325246ec6c
commit 723a60e979
2 changed files with 8 additions and 16 deletions
@@ -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>