Translation comments

Thanks @surfdude29
This commit is contained in:
Samuel Newman
2025-03-04 13:27:35 +00:00
parent 4ae248eb1e
commit b94371e960
2 changed files with 40 additions and 20 deletions
+16 -8
View File
@@ -52,16 +52,24 @@ let RepostButton = ({
label={
isReposted
? _(
msg`Undo repost (${plural(repostCount || 0, {
one: '# repost',
other: '# reposts',
})})`,
msg({
message: `Undo repost (${plural(repostCount || 0, {
one: '# repost',
other: '# reposts',
})})`,
comment:
'Accessibility label for the repost button when the post has been reposted, verb followed by number of reposts and noun',
}),
)
: _(
msg`Repost (${plural(repostCount || 0, {
one: '# repost',
other: '# reposts',
})})`,
msg({
message: `Repost (${plural(repostCount || 0, {
one: '# repost',
other: '# reposts',
})})`,
comment:
'Accessibility label for the repost button when the post has not been reposted, verb form followed by number of reposts and noun form',
}),
)
}>
<PostControlButtonIcon icon={Repost} />
+24 -12
View File
@@ -200,10 +200,14 @@ let PostControls = ({
!replyDisabled ? () => requireAuth(() => onPressReply()) : undefined
}
label={_(
msg`Reply (${plural(post.replyCount || 0, {
one: '# reply',
other: '# replies',
})})`,
msg({
message: `Reply (${plural(post.replyCount || 0, {
one: '# reply',
other: '# replies',
})})`,
comment:
'Accessibility label for the reply button, verb form followed by number of replies and noun form',
}),
)}
big={big}>
<PostControlButtonIcon icon={Bubble} />
@@ -232,16 +236,24 @@ let PostControls = ({
label={
post.viewer?.like
? _(
msg`Unlike (${plural(post.likeCount || 0, {
one: '# like',
other: '# likes',
})})`,
msg({
message: `Unlike (${plural(post.likeCount || 0, {
one: '# like',
other: '# likes',
})})`,
comment:
'Accessibility label for the like button when the post has been liked, verb followed by number of likes and noun',
}),
)
: _(
msg`Like (${plural(post.likeCount || 0, {
one: '# like',
other: '# likes',
})})`,
msg({
message: `Like (${plural(post.likeCount || 0, {
one: '# like',
other: '# likes',
})})`,
comment:
'Accessibility label for the like button when the post has not been liked, verb form followed by number of likes and noun form',
}),
)
}>
<AnimatedLikeIcon