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/moderation/LabelsOnMe.tsx | |
parent | ddeadc21a08faef34f692d3fb9822adf1b92f6a4 (diff) | |
download | voidsky-084905c1461ec6f86b03da4d4f6f6300ad9a7fc0.tar.zst |
refine plural marks (#7065)
Diffstat (limited to 'src/components/moderation/LabelsOnMe.tsx')
-rw-r--r-- | src/components/moderation/LabelsOnMe.tsx | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/src/components/moderation/LabelsOnMe.tsx b/src/components/moderation/LabelsOnMe.tsx index 681599807..f0a25959f 100644 --- a/src/components/moderation/LabelsOnMe.tsx +++ b/src/components/moderation/LabelsOnMe.tsx @@ -1,6 +1,6 @@ import {StyleProp, View, ViewStyle} from 'react-native' import {AppBskyFeedDefs, ComAtprotoLabelDefs} from '@atproto/api' -import {msg, Plural} from '@lingui/macro' +import {msg, Plural, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useSession} from '#/state/session' @@ -50,17 +50,23 @@ export function LabelsOnMe({ <ButtonIcon position="left" icon={CircleInfo} /> <ButtonText style={[a.leading_snug]}> {type === 'account' ? ( - <Plural - value={labels.length} - one="# label has been placed on this account" - other="# labels have been placed on this account" - /> + <Trans> + <Plural + value={labels.length} + one="# label has" + other="# labels have" + />{' '} + been placed on this account + </Trans> ) : ( - <Plural - value={labels.length} - one="# label has been placed on this content" - other="# labels have been placed on this content" - /> + <Trans> + <Plural + value={labels.length} + one="# label has" + other="# labels have" + />{' '} + been placed on this content + </Trans> )} </ButtonText> </Button> |