Automator Service with Google Translate

Solution 1:

It worked for me as long as pass input was set to as arguments. You could try restarting or creating a new identical service like that.

You have to URL encode the input though:

open https://translate.google.com/#auto/auto/$(ruby -rcgi -e 'print CGI.escape(STDIN.read)')

Or if you don't want to use ruby:

xxd -p | tr -d '\n' | sed 's/\(..\)/%\1/g'