v1.129.0 release prep (#11265)
This commit is contained in:
@@ -6,8 +6,7 @@ import {
|
||||
moderateProfile,
|
||||
RichText as RichTextApi,
|
||||
} from '@atproto/api'
|
||||
import {plural} from '@lingui/core/macro'
|
||||
import {Trans, useLingui} from '@lingui/react/macro'
|
||||
import {Plural, Trans, useLingui} from '@lingui/react/macro'
|
||||
|
||||
import {useModerationOpts} from '#/state/preferences/moderation-opts'
|
||||
import {useTrendingSettings} from '#/state/preferences/trending'
|
||||
@@ -88,6 +87,7 @@ export function TrendRow({
|
||||
const gutters = useGutters([0, 'base'])
|
||||
|
||||
const actors = useModerateTrendingActors(trend.actors)
|
||||
const formattedPostCount = formatCount(i18n, trend.postCount)
|
||||
|
||||
const description = useMemo(() => {
|
||||
if (!trend.description) return
|
||||
@@ -146,8 +146,12 @@ export function TrendRow({
|
||||
style={[a.text_sm, t.atoms.text_contrast_medium]}
|
||||
numberOfLines={1}>
|
||||
<Trans comment="'{postCount} {posts}', e.g., '1.2K posts'">
|
||||
{formatCount(i18n, trend.postCount)}{' '}
|
||||
{plural(trend.postCount, {one: 'post', other: 'posts'})}
|
||||
{formattedPostCount}{' '}
|
||||
<Plural
|
||||
value={{postCount: trend.postCount}}
|
||||
one="post"
|
||||
other="posts"
|
||||
/>
|
||||
</Trans>
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user