Last active
March 17, 2025 14:31
-
-
Save puemos/3f484406ec2234fb933ca2a70d6de751 to your computer and use it in GitHub Desktop.
Fast translation with Google Translator and MAC OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation:
https://medium.com/@mrdoro/fast-translation-with-google-translator-and-mac-osx-817e32233b7a
You can change
en
athttp://translate.google.com/#auto/en/
to your lang