diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-12-12 12:48:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 03:48:02 +0000 |
commit | 084905c1461ec6f86b03da4d4f6f6300ad9a7fc0 (patch) | |
tree | 43e383e24335c24e0d1256f2d579057740d5a60e /src/components/LabelingServiceCard/index.tsx | |
parent | ddeadc21a08faef34f692d3fb9822adf1b92f6a4 (diff) | |
download | voidsky-084905c1461ec6f86b03da4d4f6f6300ad9a7fc0.tar.zst |
refine plural marks (#7065)
Diffstat (limited to 'src/components/LabelingServiceCard/index.tsx')
-rw-r--r-- | src/components/LabelingServiceCard/index.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/LabelingServiceCard/index.tsx b/src/components/LabelingServiceCard/index.tsx index 03b8ece6b..b144c1dc8 100644 --- a/src/components/LabelingServiceCard/index.tsx +++ b/src/components/LabelingServiceCard/index.tsx @@ -83,7 +83,7 @@ export function RegionalNotice() { ) } -export function LikeCount({count}: {count: number}) { +export function LikeCount({likeCount}: {likeCount: number}) { const t = useTheme() return ( <Text @@ -93,7 +93,9 @@ export function LikeCount({count}: {count: number}) { t.atoms.text_contrast_medium, {fontWeight: '600'}, ]}> - <Plural value={count} one="Liked by # user" other="Liked by # users" /> + <Trans> + Liked by <Plural value={likeCount} one="# user" other="# users" /> + </Trans> </Text> ) } @@ -138,7 +140,7 @@ export function Default({ value={labeler.creator.description} handle={labeler.creator.handle} /> - {labeler.likeCount ? <LikeCount count={labeler.likeCount} /> : null} + {labeler.likeCount ? <LikeCount likeCount={labeler.likeCount} /> : null} </Content> </Outer> ) |