Skip to content

Instantly share code, notes, and snippets.

@puemos
Last active March 17, 2025 14:31
Show Gist options
  • Save puemos/3f484406ec2234fb933ca2a70d6de751 to your computer and use it in GitHub Desktop.
Save puemos/3f484406ec2234fb933ca2a70d6de751 to your computer and use it in GitHub Desktop.
Fast translation with Google Translator and MAC OSX
on run {input, parameters}
set output to "http://translate.google.com/#auto/en/" & urldecode(input as string)
return output
end run
on urldecode(x)
set cmd to "'require \"cgi\"; puts CGI.escape(STDIN.read.chomp)'"
do shell script "echo " & quoted form of x & " | ruby -e " & cmd
end urldecode
@puemos
Copy link
Author

puemos commented Aug 9, 2017

Installation:

https://medium.com/@mrdoro/fast-translation-with-google-translator-and-mac-osx-817e32233b7a

You can change en at http://translate.google.com/#auto/en/ to your lang

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment