diff options
Diffstat (limited to 'src/view/com')
-rw-r--r-- | src/view/com/feeds/FeedSourceCard.tsx | 13 | ||||
-rw-r--r-- | src/view/com/util/post-ctrls/PostCtrls.tsx | 30 | ||||
-rw-r--r-- | src/view/com/util/post-ctrls/RepostButton.tsx | 18 |
3 files changed, 40 insertions, 21 deletions
diff --git a/src/view/com/feeds/FeedSourceCard.tsx b/src/view/com/feeds/FeedSourceCard.tsx index 707aad7fb..a59148889 100644 --- a/src/view/com/feeds/FeedSourceCard.tsx +++ b/src/view/com/feeds/FeedSourceCard.tsx @@ -300,11 +300,14 @@ export function FeedSourceCardLoaded({ {showLikes && feed.type === 'feed' ? ( <Text type="sm-medium" style={[pal.text, pal.textLight]}> - <Plural - value={feed.likeCount || 0} - one="Liked by # user" - other="Liked by # users" - /> + <Trans> + Liked by{' '} + <Plural + value={feed.likeCount || 0} + one="# user" + other="# users" + /> + </Trans> </Text> ) : null} </Pressable> diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx index deb4b51d8..39caaf098 100644 --- a/src/view/com/util/post-ctrls/PostCtrls.tsx +++ b/src/view/com/util/post-ctrls/PostCtrls.tsx @@ -258,10 +258,12 @@ let PostCtrls = ({ } }} accessibilityRole="button" - accessibilityLabel={plural(post.replyCount || 0, { - one: 'Reply (# reply)', - other: 'Reply (# replies)', - })} + accessibilityLabel={_( + msg`Reply (${plural(post.replyCount || 0, { + one: '# reply', + other: '# replies', + })})`, + )} accessibilityHint="" hitSlop={POST_CTRL_HITSLOP}> <Bubble @@ -298,14 +300,18 @@ let PostCtrls = ({ accessibilityRole="button" accessibilityLabel={ post.viewer?.like - ? plural(post.likeCount || 0, { - one: 'Unlike (# like)', - other: 'Unlike (# likes)', - }) - : plural(post.likeCount || 0, { - one: 'Like (# like)', - other: 'Like (# likes)', - }) + ? _( + msg`Unlike (${plural(post.likeCount || 0, { + one: '# like', + other: '# likes', + })})`, + ) + : _( + msg`Like (${plural(post.likeCount || 0, { + one: '# like', + other: '# likes', + })})`, + ) } accessibilityHint="" hitSlop={POST_CTRL_HITSLOP}> diff --git a/src/view/com/util/post-ctrls/RepostButton.tsx b/src/view/com/util/post-ctrls/RepostButton.tsx index 06b1fcaf6..ca1647a99 100644 --- a/src/view/com/util/post-ctrls/RepostButton.tsx +++ b/src/view/com/util/post-ctrls/RepostButton.tsx @@ -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" |