From 1118fd68838658981ce692efea87030696f3323a Mon Sep 17 00:00:00 2001
From: Takayuki KUSANO <65759+tkusano@users.noreply.github.com>
Date: Sun, 6 Oct 2024 08:12:30 +0900
Subject: Enclose the entire message in Trans tags for translation (#5616)

---
 src/components/moderation/ModerationDetailsDialog.tsx | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

(limited to 'src/components/moderation/ModerationDetailsDialog.tsx')

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>
-- 
cgit 1.4.1

