Enclose the entire message in Trans tags for translation (#5616)

This commit is contained in:
Takayuki KUSANO
2024-10-06 08:12:30 +09:00
committed by GitHub
parent 76d63f9967
commit 1118fd6883
2 changed files with 23 additions and 19 deletions
@@ -242,8 +242,8 @@ 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>{' '}
</Text>
<Trans>
This appeal will be sent to{' '}
<InlineLinkText
label={sourceName}
to={makeProfileLink(
@@ -253,7 +253,9 @@ function AppealForm({
style={[a.text_md, a.leading_snug]}>
{sourceName}
</InlineLinkText>
<Text style={[a.text_md, a.leading_snug]}>.</Text>
.
</Trans>
</Text>
</View>
<View style={[a.my_md]}>
<Dialog.Input
@@ -148,8 +148,8 @@ function ModerationDetailsDialogInner({
) : (
<>
<Text style={[t.atoms.text, a.text_md, a.leading_snug, a.mt_lg]}>
<Trans>This label was applied by </Trans>
</Text>
<Trans>
This label was applied by{' '}
<InlineLinkText
label={desc.source || _(msg`an unknown labeler`)}
to={makeProfileLink({did: modcause.label.src, handle: ''})}
@@ -157,6 +157,8 @@ function ModerationDetailsDialogInner({
style={a.text_md}>
{desc.source || _(msg`an unknown labeler`)}
</InlineLinkText>
</Trans>
</Text>
</>
)}
</View>