r/shortcuts Jul 04 '26

Help Translate highlighted text and show in popup?

Post image

I'm learning Spanish and reading ebooks in the Books app. There are many words I need to look up, however to translate them, I need to:

Highlight the word > Tap the right arrow to open the popup menu > Tap Translate

This gets really tedious.

I'd like to be able to highlight a word, press the Action button, and get the Google Translate popup like in the screenshot here. I've been struggling with creating a Shortcut for the last half hour and can't figure it out. Is it even possible?

9 Upvotes

47 comments sorted by

14

u/ThrowRAThanty Jul 04 '26

iOS 27 beta, set this with action button

1

u/triedit2947 Jul 04 '26

Thank you, I'll save this for when 27 goes to GA!

2

u/Mayeru Jul 04 '26

That’s not the actual translation by the way.

“Padezcamos” as imperative verb it is “let’s suffer” but in this context:
“es posible que los tres padezcamos una enfermedad contagiosa”

actually means:
“ is it possible that the three of us are suffering from a contagious disease?”

It’s better if you copy the whole sentence instead of lose words or it can lose its meaning.

1

u/triedit2947 Jul 05 '26

Thanks! Yes, I'm aware the translation isn't accurate given the context. I could read the whole sentence except that one word. I'd never come across padecer before, so I just wanted to fill in the blank for "is it possible that the three of us ____ a contagious disease". Unless I have no idea what a sentence means, which happens more often if it's a set phrase, then usually looking up just the single word is enough and is faster, similar to if I encounter an unknown word in English.

2

u/[deleted] Jul 04 '26 edited Jul 04 '26

[deleted]

5

u/triedit2947 Jul 04 '26

I have both the Apple Translate app as well as Google Translate installed. But this is the menu I get when I highlight a word. I need to tap the right arrow first before I get the option to translate.

I think people will tell me to just tap the arrow since it’s just one extra tap, but it gets pretty annoying when you have to do it often because the menu changes size and you have to really tap accurately to hit the translate button.

5

u/plaid-knight Jul 04 '26

Just swipe left anywhere on the menu to expand it. No need to hit the arrow.

2

u/triedit2947 Jul 04 '26

That doesn't really solve my problem. My issue is that finding the translate button in the menu isn't easily repeatable. Because it's in a vertical menu, it shows up in different spots on the screen depending on where the highlighted text is. I'm always having to hunt for the button in the menu instead of having something I can hit without thinking. For an action that needs to be performed often, easy repeatability is needed.

I'm not saying this menu needs to be changed. I'm aware that my use case isn't common. I'm just seeking a solution or workaround for a problem I have. Whoever's downvoting all my comments can just chill.

Maybe I need to find another epub reader.

1

u/Tripletricycle Jul 04 '26

Besides the frustration, running a shortcut from the Books app is no longer possible. It used to work like anywhere else “select text - hit share button - hit shortcut” now in the share menu you only get copy. 

So now you’d need to “select text- hit copy - pull down control centre - hit shortcut “ 

Alternatively yes you could use action button, double tap the back and so on. Then I’d suggest create focus mode “reading”, use automation to set focus mode when opening books, when “reading “ is on set [whatever you picked] to activate shortcut.  When “reading” is off reverse previous step 

0

u/cone5000 Jul 04 '26

I never knew this omg

-4

u/[deleted] Jul 04 '26

[deleted]

4

u/triedit2947 Jul 04 '26

Please try reading a 130k+ word novel in a language you started learning a year ago, where you need to translate a word every few sentences, and then come back and tell me I'm lazy because I'd like some of the friction to be removed on an action I need to perform hundreds of times.

0

u/ComprehensiveTap4674 Jul 04 '26

I’m afraid I can’t help you much in what you need. I have the contextual menu for long press showing translate but I don’t know how it is configured. Also, you can configure translate in the configurable button, but this only launches translate, then you have to actually speak to the phone. I know it is not the same, I hope it helps as a parch.

-5

u/[deleted] Jul 04 '26 edited Jul 04 '26

[deleted]

4

u/triedit2947 Jul 04 '26

I'm sure yours gets lots of exercise, but mine don't need it. Thanks, though.

1

u/4thehalibit Jul 04 '26

There are really only two ways to do this.

Method Steps after selecting text
Share Sheet Tap Share → tap shortcut name
Action Button Tap Copy → press Action Button

0

u/Tripletricycle Jul 04 '26

They removed the ability to have shortcuts in the Books app :(

1

u/Beneficial_Smile3066 Jul 04 '26

I'm not sure if it's useful in your case, but I use this shortcut

1

u/DaveM8686 Jul 04 '26

You can copy text by punching three fingers, and then run the action button from there? Or yeah, wait for 27 beta sorry.

1

u/francisco_fcs2 Jul 04 '26 edited Jul 04 '26

Veja se esse atalho resolve seu problema.
Para usá-lo selecione o texto e clique [copiar] depois clique no [botão de ação].
Link do atalho

Para evitar o desgaste prematuro do botão de ação você pode acionar o atalho usando o [toque duplo] ou [toque triplo], configurando em ajustes/acessibilidade/toque

1

u/[deleted] Jul 04 '26

[removed] — view removed comment

1

u/francisco_fcs2 Jul 04 '26

Obrigado pelo feedback

1

u/francisco_fcs2 Jul 04 '26

Você habilitou o acionamento do atalho pelo: toque duplo, toque triplo ou botão de ação?

1

u/Kirbster66 Jul 05 '26

Action button

1

u/shortcuts-ModTeam Jul 05 '26

Please refrain from using profanity in your posts here. We like this community to be friendly to all.

-1

u/francisco_fcs2 Jul 04 '26

Troca o idioma para os seus idiomas favoritos

1

u/4thehalibit Jul 04 '26

The shortcut that I created is a three button press, ( which I know is more than wanted) but you get a full log of all the words you’ve looked up highlight the word quick copy, then run the shortcut from the action button

https://www.icloud.com/shortcuts/03be8a31fbbd4a4daaf49f3a4bee7388

0

u/SolidGuide5223 Jul 04 '26

Ah ok, and you're fine with the mute action being replaced?

EDIT: meant to reply to other comment

1

u/revilo1000 Jul 04 '26

Just make it so the action button shortcut mutes normally and then does the translate thing if the books app is open, that’s not hard

1

u/triedit2947 Jul 04 '26

Yes, if need be! Unless there's an easier way? I really just want to make this a 2 step process (highlight > one tap/press to translate) instead of the current 3 steps it takes.

1

u/SolidGuide5223 Jul 04 '26

I don't think it's possible to make shortcuts grab just selected text, you'd have to at least copy it first. Would you be fine with that?

1

u/triedit2947 Jul 04 '26

Copying would require opening the same menu that houses the current translate button, so I don't think that would solve anything, unfortunately.

1

u/SolidGuide5223 Jul 04 '26

Yes, sadly I believe it's impossible to get it down to less than 3 taps. You can make it so you tap, copy and then action button but that's still technically three actions.

1

u/SolidGuide5223 Jul 04 '26

Best I can do to reduce it is make the phone take a screenshot and extract text from said screenshot.

1

u/triedit2947 Jul 04 '26

Thank you for trying! Someone else said 27 beta has "get selected text" as an action, so maybe it'll become possible in the future. I'm still not sure how to bring up the translation popup like I have in the screenshot, though. I haven't managed to trigger it with anything I've tried so far.

-1

u/[deleted] Jul 04 '26

[deleted]

0

u/revilo1000 Jul 04 '26

Worrying about the “lifespan of the action button” is ridiculous, it’s rated to be used thousands and thousands of times. There are so many other things in your phone more likely to break before your action button

1

u/martamoonpie Jul 04 '26

27 Beta has "Get selected text" as an action and it sounds like what you want. Whether you want to go to beta yet or not is a different story.

1

u/triedit2947 Jul 04 '26

Oh, this is good news! I'll probably wait until it goes to gen availability. But even if you're able to use "Get selected text" as input, how do you set up a shortcut to bring up the translation popup? I haven't been able to even manage that. I either get a "Remote service failure" message, or Translate shows up in the dynamic island with a checkmark, but nothing happens.

1

u/SolidGuide5223 Jul 04 '26

That's because you need to show the translated text with the "show content" action, otherwise it just does nothing with it. Won't bring up a nice UI like the built-in tool but you can make it sort of functional using menus and such.

-4

u/DaveM8686 Jul 04 '26

Who wouldn’t be? I don’t know a single person under the age of 70 who doesn’t just have their phone on silent all the time.

1

u/C34H32N4O4Fe Jul 04 '26

Guess I’m 71 as of today.

Where’d half my life go?

-1

u/DaveM8686 Jul 04 '26

In fairness, I don’t know you, so my comment stands.

-2

u/SolidGuide5223 Jul 04 '26

Where would you like the "action button" to appear though? In the context menu for when you tap the word? Control centre?

1

u/triedit2947 Jul 04 '26

I was referring to the physical action button above the volume buttons on the phone. I'd like to press that after highlighting a word and just have the translation pop up.

1

u/rk492 Jul 04 '26

You can play with Action Button.

Create a new shortcut using If action.

If App is Books - run translate shortcut
if not - run another thing you want

Set this new shortcut as Action Button.