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
@@ -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>