From a3f2d05868ade2ee7117ae023629f76ab2edac7f Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Tue, 13 Jan 2026 17:14:41 +0000 Subject: [PATCH] Hide the Translate action on macOS in favour of selecting the text. (#4954) Hide the Translate action on macOS. It doesn't work, but it's also easy enough to translate on Mac by selecting the text anyway. --- .../View/ItemMenu/TimelineItemMenuActionProvider.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Screens/Timeline/View/ItemMenu/TimelineItemMenuActionProvider.swift b/ElementX/Sources/Screens/Timeline/View/ItemMenu/TimelineItemMenuActionProvider.swift index 61895b6fe..d9a2a438d 100644 --- a/ElementX/Sources/Screens/Timeline/View/ItemMenu/TimelineItemMenuActionProvider.swift +++ b/ElementX/Sources/Screens/Timeline/View/ItemMenu/TimelineItemMenuActionProvider.swift @@ -91,7 +91,12 @@ struct TimelineItemMenuActionProvider { if item.isCopyable { actions.append(.copy) - actions.append(.translate) + + if !ProcessInfo.processInfo.isiOSAppOnMac { + // As of macOS 26.2, the sheet isn't presented, but it is easy enough + // to select some text and right click on Mac anyway so hide this one. + actions.append(.translate) + } } else if item.hasMediaCaption { actions.append(.copyCaption) }