refine plural marks (#7065)

This commit is contained in:
Minseo Lee
2024-12-12 12:48:02 +09:00
committed by GitHub
parent ddeadc21a0
commit 084905c146
8 changed files with 83 additions and 54 deletions
+14 -4
View File
@@ -62,11 +62,21 @@ let RepostButton = ({
{padding: 5},
]}
hoverStyle={t.atoms.bg_contrast_25}
label={`${
label={
isReposted
? _(msg`Undo repost`)
: _(msg({message: 'Repost', context: 'action'}))
} (${plural(repostCount || 0, {one: '# repost', other: '# reposts'})})`}
? _(
msg`Undo repost (${plural(repostCount || 0, {
one: '# repost',
other: '# reposts',
})})`,
)
: _(
msg`Repost (${plural(repostCount || 0, {
one: '# repost',
other: '# reposts',
})})`,
)
}
shape="round"
variant="ghost"
color="secondary"