Google Translate
Quickly translate using the Google Translate API
Description
Does what you think it does, takes text and translates it using the Google Translate API! The translated text will be presented and can then be shared or saved to your clipboard :)
This Shortcut was designed to be used in other Shortcuts, such as in the example below
Features
- Works seamlessly without showing the user a webpage
- Translate any text into your favourite languages!
- This Shortcut can be called from another Shortcut and will return the translated text seamlessly (examples below)
Calling from another Shortcut
- Shortcut: Basic Example
- Shortcut: Quickly translate to English and copy to Clipboard
- Shortcut: Translate paragraphs separately to keep the original format
Notes
- Credits to matheuss for his work, it helped me figure out how to get the Google Translate API working with this Shortcut
Latest Release Notes
2.9.5 - Feb. 23, 2021, 12:27 a.m.
- More fixes concerning "quotes"
Version history
Feedback
Log in or sign up to leave feedback.
@IamnotPorky
Keep getting blank translation. Tried texting translating Chinese and Korean to English...
· 3 years, 7 months ago
· 3 years, 7 months ago
@brechtbakker
Author
Unfortunately this happens from time to time, especially when your internet connection is slow. I'm working on an improved version that I hope to publish soon. Have a nice day!
Edit: More reliable version already published!
· 3 years, 7 months ago
· 3 years, 7 months ago
@i_7amza
Great shortcut, nice work
· 3 years, 7 months ago
· 3 years, 7 months ago
@brechtbakker
Author
Thank you very much, hope you’ll find a good use for it! :)
· 3 years, 7 months ago
· 3 years, 7 months ago
@revrob
Hello Brecht - very many thanks for this, invaluable. Sometimes it doesn’t work, and I get a box saying, ‘Numerical argument out of domain. The range you specified was invalid. You asked for items 1 to 0. OK’ Any idea? Robert
· 3 years, 4 months ago
· 3 years, 4 months ago
@brechtbakker
Author
Glad you like my shortcut! Regarding the problem, do you have a way of reproducing it? I’ll have a look at my logic though and see if I can see anything obvious. Thank you, Brecht
· 3 years, 4 months ago
· 3 years, 4 months ago
@revrob
It’s happening most of the time with me now, though it had worked fine. Can I share a screen recording with you. Would that help?
· 3 years, 4 months ago
· 3 years, 4 months ago
@brechtbakker
Author
I do remember once while playing around with the shortcut that I got some errors, not sure if the error you’re talking about, but after some debugging I found that Google was blocking me for ‘unusual activity’ ;)
Do you have Reddit? You can send me a message there, will be easier @brechtbakker
Happy New Year :)
· 3 years, 4 months ago
· 3 years, 4 months ago
@jsmglx
Hello @brechtbakker, I made a shortcut called Ultimate Translator [ https://routinehub.co/shortcut/1802 ] which uses your G Translate shortcut. I’m giving you credit on the RoutineHub Shortcut description and also when running the shortcut if the user doesn’t have the Google Translate installed [ I invite to install it ;) ]. I wish you liked it. Thanks for making this possible and good job!
- @jsmglx
· 3 years, 3 months ago
· 3 years, 3 months ago
@brechtbakker
Author
Hi @jsmglx, the main aim for this shortcut was to make Google Translate available to use in other shortcuts, so I'm glad you're using it :) Thanks for the credits!
· 3 years, 3 months ago
· 3 years, 3 months ago
@farafalil
Updating shortcuts through UpdateKit shortcut on poor connection & cellular data keeps making my iPhone unresponsive & then if I manage to go to home screen, it'll retrogress to endless updating process whenever the Shorcuts app reopen after
· 1 year, 7 months ago
· 1 year, 7 months ago
@brechtbakker
Author
I have removed UpdateKit in the latest version, it now checks directly with RoutineHub if there’s a newer version. Hope this also solves your problem :) Have a good day/night!
· 1 year, 7 months ago
· 1 year, 7 months ago
@farafalil
Thank you so much this is better I love it! Great work. Keep it up!
· 1 year, 7 months ago
· 1 year, 7 months ago
@ABUSLMAN
When choosing the Arabic language, the result appears empty
· 1 year, 5 months ago
· 1 year, 5 months ago
@brechtbakker
Author
Hi, thanks for your feedback :) I never even considered other alphabets.. it should be fixed now — please update and let me know!
· 1 year, 5 months ago
· 1 year, 5 months ago
@ABUSLMAN
When you translate more than two words, the result will be blank, and when you translate two words, the space will appear as this 20%
· 1 year, 5 months ago
· 1 year, 5 months ago
@brechtbakker
Author
That’s strange, I tested it by translating multiple sentences and it’s working just fine. (iOS 14.3, English system, shortcut version 2.8). Could you send me some example text?
· 1 year, 5 months ago
· 1 year, 5 months ago
@ABUSLMAN
The shortcut works well if the language of English system, and when you convert the system language to Arabic, the space appear as %20
Example:
شكراً لك على جهودك وسرعة تجاوبك
· 1 year, 5 months ago
· 1 year, 5 months ago
@brechtbakker
Author
Alright, after changing my language to Arabic and being excited that everything was mirrored, I played around with the shortcut and I think I fixed the % characters :) Let me know if it’s better now... اتمنى لك ليلة هانئة
· 1 year, 5 months ago
· 1 year, 5 months ago
@chiusman
Is it possible to add a new option as Chinese (Traditional)? The short name would be zh-TW, but Even if I add it by myself it’s not working :(
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
Hi @chiusman, I just added it for you. Please update to 2.9.1 :)
· 1 year, 4 months ago
· 1 year, 4 months ago
@ABUSLMAN
Excellent update works with Arabic language perfectly Thank you
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
No problem! Thanks for the feedback. Glad it’s working for you :) Have a great day
· 1 year, 4 months ago
· 1 year, 4 months ago
@uttamk
Version 2.9.1 getting blank result when I use Indian language Hindi or Marathi.
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
Hi uttamk! Thanks for the feedback. I just translated some text into Hindi and back and it works fine for me. Could you tell me some more about your problem? Are you translating from or to Hindi/Marathi? What’s your system language? Thanks!
· 1 year, 4 months ago
· 1 year, 4 months ago
@uttamk
@brechtbakker Thanks for the quick response, I was trying a translate a paragraph in Safari from English to Hindi. Some time I get blank result and other time shortcut simply hang and doesn’t work..
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
Strange! I just changed my phone language to Hindi, very confusing, but I think I managed to fix the issue :) Please update to 2.9.2 and let me know if it’s working!
· 1 year, 4 months ago
· 1 year, 4 months ago
@uttamk
@brechtbakker
Thanks for the update! It now working perfectly fine!!!
· 1 year, 4 months ago
· 1 year, 4 months ago
@tsilvic
Hi! I have some similar issues as other people in the comments.
First of all with the new version 2.9.2. every translation is blank.
If I use a previous version I have saved (2.3) it translates Greek but just a small part of the text I input.
For example this is when I try to translate the whole first paragraph of this page (I think it translates only th first sentence always)
Κάνει αυτό που νομίζετε ότι κάνει, παίρνει κείμενο και το μεταφράζει χρησιμοποιώντας το Google Translate API!
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
Hi @tsilvic! Thanks for the feedback :) I think I figured out what the problem was, please update to 2.9.3. Let me know if it fixes the issue you've been having. Have a nice day! PS: when you tap on 'Version history' you can download earlier versions, so you don't need to worry about keeping duplicates in case something breaks :)
· 1 year, 4 months ago
· 1 year, 4 months ago
@tsilvic
Works! Thanks so much!!!!
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
Good to hear, thanks for telling me about the problem :)
· 1 year, 4 months ago
· 1 year, 4 months ago
@tsilvic
Hi @brechtbakker. I tried to use the schortcut again after a while and doesn't work anymore. The response in any language is blank wether i use it from the share sheet or I use the clipboard...
· 1 year, 3 months ago
· 1 year, 3 months ago
@brechtbakker
Author
Hi @tsilvic! Could you tell me a little more? I don’t seem to have any problems translating from the share sheet.. your comment translated just fine :) What system language do you have? What version of the shortcut and iOS do you have? :) Let me know and I’ll see what I can do. Have a good day/night!
· 1 year, 3 months ago
· 1 year, 3 months ago
@tsilvic
Hi thanks for you reply. I am using shortcut version 2.9.3, system language is English (with second preferred language Greek if it matters), ios 14.3
Let me know if I can provide any other useful info.
Thanks!
Edit: after some random continuous tries with different text now it works again normally(!)
Probably it has to do with the network connection as you said in the first comment...
· 1 year, 3 months ago
· 1 year, 3 months ago
@khiz11
I’m not able to use the shortcut from the Share Sheet on my iPhone. Whenever I select a text and click on Google Translate in the Share Sheet nothing happens. I have to copy text to my clipboard then go to the shortcuts app and click on the Google Translate shortcut and then select the word from clipboard in order to translate it, which is inefficient. Please fix this. I’m on the latest iOS 14.3 on my iPhone SE 2020 (second generation)
· 1 year, 4 months ago
· 1 year, 4 months ago
@brechtbakker
Author
Hi, that does sound very inefficient.. would appreciate it if you’d ask nicely next time. I’ll have a look, if I fix it I’ll let you know. PS: Also have a look at the examples, you can make a share sheet shortcut that uses the Google Translate shortcut with a default language so you don’t have to select a language every time.
· 1 year, 3 months ago
· 1 year, 3 months ago
@Maciek
I am blind and enjoy playing text-based games. I often use Google Translator to translate paragraphs. I copy the last spoken text to the clipboard, switch to the translator, translate the text and go back to the game. This is very inconvenient, so I really liked your script. The problem is that very often it does not work properly. After translation I have no text only 9 characters pause. The same text MS translator always recognizes correctly although the translation is inaccurate.
· 1 year, 3 months ago
· 1 year, 3 months ago
@Maciek
I have iPhone SE 1st gen, IOS 14.4 my language is Polish PL. I use VoiceOver.
Could you try to fix this?
Alternatively could you write another, simpler script which would do:
1. copy the last statement to the clipboard (this is a VO command);
or
2. translate the clipboard to polish;
3. say clipboard;
4. button 'close', button 'repeat statement', button'copy to clipboard';
Thank you and best regards
Maciek
· 1 year, 3 months ago
· 1 year, 3 months ago
@brechtbakker
Author
Cześć Maciek, thank you for your message, if there is an easier way to communicate let me know :) Please try to update the Google Translate shortcut, I made some changes recently maybe those will fix the empty messages. I also made a shortcut that does what you suggested, it takes input (or clipboard) and translates it to Polish, then speaks it in Polish with options for repeat/copy/exit. If I can do anything else let me know :) <removed link for better formatting>
· 1 year, 3 months ago
· 1 year, 3 months ago
@Maciek
Thank you for your quick reply. Please Please contact me at skydreamer2112 (at) gmail.com
kind regards
· 1 year, 3 months ago
· 1 year, 3 months ago
@s.dzevad
Member
I love and love using the Google translate shortcut. However, can you make the shortcut recognize the original display as an example when translating or displaying text:
- new order
- blank spaces in the text where they exist - display text as items
- and otners
This would really complete this Shortcut as "best of best"
Thanks
· 1 year ago
· 1 year ago
@brechtbakker
Author
Hi s.dzevad, thanks for your kind words! As to your suggestion, I’m not sure I understand what you’re asking, could you send me an example?
· 1 year ago
· 1 year ago
@s.dzevad
Member
I can't show you an example like this. Can you send me your email?
I have to show the pictures.
Thank you
· 1 year ago
· 1 year ago
@kevinokok10
The translate to English version of the shortcut is not working for some reSon on iOS15. Could you please check?
· 8 months ago
· 8 months ago
@brechtbakker
Author
Hi kevinokok10, that link was pretty old! I just re-uploaded the example shortcut, hopefully it will work for you now. By the way, the 'Translate to English' shortcut requires the main 'Google Translate' shortcut to be installed :)
· 8 months ago
· 8 months ago
@kevinokok10
Its still is not working because this is what I am getting in the results: “{Language:English,UpdateKit:0,Text:}”
· 8 months ago
· 8 months ago
@brechtbakker
Author
It looks like you didn’t select any text to translate. Could you try again by selecting some text, tapping ‘Share…’ and then tapping ‘Translate to English’? If you want it to translate your clipboard, you’ll need to change the first action; ‘if there is no input: get clipboard’
· 7 months, 4 weeks ago
· 7 months, 4 weeks ago
@kevinokok10
If I run only the ‘Google Translate’ shortcut then it gives me the correct results. But when I try to use the ‘Translate to English’ shortcut then I am getting the results that I posted above.
· 8 months ago
· 8 months ago
@kevinokok10
Any update? I am still getting the same result for both English and Google Translate
· 7 months, 4 weeks ago
· 7 months, 4 weeks ago
@[email protected]
Two improvement suggestions:
1- Long texts are not scrollable
2- Ability to translate images. We can share the image/screenshot, and Google translate OCRs the image and translates it.
· 4 months, 2 weeks ago
· 4 months, 2 weeks ago