diff options
author | Takayuki KUSANO <65759+tkusano@users.noreply.github.com> | 2024-10-06 08:12:30 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-05 16:12:30 -0700 |
commit | 1118fd68838658981ce692efea87030696f3323a (patch) | |
tree | a0b28cc2ea1dcde39e369fc7b3d756e98ce8fd3a /src | |
parent | 76d63f9967a9a59193652487d2a10f41eac22268 (diff) | |
download | voidsky-1118fd68838658981ce692efea87030696f3323a.tar.zst |
Enclose the entire message in Trans tags for translation (#5616)
Diffstat (limited to 'src')
-rw-r--r-- | src/components/moderation/LabelsOnMeDialog.tsx | 24 | ||||
-rw-r--r-- | src/components/moderation/ModerationDetailsDialog.tsx | 18 |
2 files changed, 23 insertions, 19 deletions
diff --git a/src/components/moderation/LabelsOnMeDialog.tsx b/src/components/moderation/LabelsOnMeDialog.tsx index bf0d1905e..34fff5a8a 100644 --- a/src/components/moderation/LabelsOnMeDialog.tsx +++ b/src/components/moderation/LabelsOnMeDialog.tsx @@ -242,18 +242,20 @@ function AppealForm({ <Trans>Appeal "{strings.name}" label</Trans> </Text> <Text style={[a.text_md, a.leading_snug]}> - <Trans>This appeal will be sent to</Trans>{' '} + <Trans> + This appeal will be sent to{' '} + <InlineLinkText + label={sourceName} + to={makeProfileLink( + labeler ? labeler.creator : {did: label.src, handle: ''}, + )} + onPress={() => control.close()} + style={[a.text_md, a.leading_snug]}> + {sourceName} + </InlineLinkText> + . + </Trans> </Text> - <InlineLinkText - label={sourceName} - to={makeProfileLink( - labeler ? labeler.creator : {did: label.src, handle: ''}, - )} - onPress={() => control.close()} - style={[a.text_md, a.leading_snug]}> - {sourceName} - </InlineLinkText> - <Text style={[a.text_md, a.leading_snug]}>.</Text> </View> <View style={[a.my_md]}> <Dialog.Input diff --git a/src/components/moderation/ModerationDetailsDialog.tsx b/src/components/moderation/ModerationDetailsDialog.tsx index 0a1fae67e..709ca4c1b 100644 --- a/src/components/moderation/ModerationDetailsDialog.tsx +++ b/src/components/moderation/ModerationDetailsDialog.tsx @@ -148,15 +148,17 @@ function ModerationDetailsDialogInner({ ) : ( <> <Text style={[t.atoms.text, a.text_md, a.leading_snug, a.mt_lg]}> - <Trans>This label was applied by </Trans> + <Trans> + This label was applied by{' '} + <InlineLinkText + label={desc.source || _(msg`an unknown labeler`)} + to={makeProfileLink({did: modcause.label.src, handle: ''})} + onPress={() => control.close()} + style={a.text_md}> + {desc.source || _(msg`an unknown labeler`)} + </InlineLinkText> + </Trans> </Text> - <InlineLinkText - label={desc.source || _(msg`an unknown labeler`)} - to={makeProfileLink({did: modcause.label.src, handle: ''})} - onPress={() => control.close()} - style={a.text_md}> - {desc.source || _(msg`an unknown labeler`)} - </InlineLinkText> </> )} </View> |