diff options
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/Profile/Header/Metrics.tsx | 8 | ||||
-rw-r--r-- | src/screens/StarterPack/StarterPackLandingScreen.tsx | 6 |
2 files changed, 8 insertions, 6 deletions
diff --git a/src/screens/Profile/Header/Metrics.tsx b/src/screens/Profile/Header/Metrics.tsx index e3537f44b..756eb1f89 100644 --- a/src/screens/Profile/Header/Metrics.tsx +++ b/src/screens/Profile/Header/Metrics.tsx @@ -17,9 +17,9 @@ export function ProfileHeaderMetrics({ profile: Shadow<AppBskyActorDefs.ProfileViewDetailed> }) { const t = useTheme() - const {_} = useLingui() - const following = formatCount(profile.followsCount || 0) - const followers = formatCount(profile.followersCount || 0) + const {_, i18n} = useLingui() + const following = formatCount(i18n, profile.followsCount || 0) + const followers = formatCount(i18n, profile.followersCount || 0) const pluralizedFollowers = plural(profile.followersCount || 0, { one: 'follower', other: 'followers', @@ -54,7 +54,7 @@ export function ProfileHeaderMetrics({ </Text> </InlineLinkText> <Text style={[a.font_bold, t.atoms.text, a.text_md]}> - {formatCount(profile.postsCount || 0)}{' '} + {formatCount(i18n, profile.postsCount || 0)}{' '} <Text style={[t.atoms.text_contrast_medium, a.font_normal, a.text_md]}> {plural(profile.postsCount || 0, {one: 'post', other: 'posts'})} </Text> diff --git a/src/screens/StarterPack/StarterPackLandingScreen.tsx b/src/screens/StarterPack/StarterPackLandingScreen.tsx index 7dda45f96..5f1d5e062 100644 --- a/src/screens/StarterPack/StarterPackLandingScreen.tsx +++ b/src/screens/StarterPack/StarterPackLandingScreen.tsx @@ -113,7 +113,7 @@ function LandingScreenLoaded({ moderationOpts: ModerationOpts }) { const {creator, listItemsSample, feeds} = starterPack - const {_} = useLingui() + const {_, i18n} = useLingui() const t = useTheme() const activeStarterPack = useActiveStarterPack() const setActiveStarterPack = useSetActiveStarterPack() @@ -225,7 +225,9 @@ function LandingScreenLoaded({ t.atoms.text_contrast_medium, ]} numberOfLines={1}> - <Trans>{formatCount(JOINED_THIS_WEEK)} joined this week</Trans> + <Trans> + {formatCount(i18n, JOINED_THIS_WEEK)} joined this week + </Trans> </Text> </View> </View> |