Skip to content

Instantly share code, notes, and snippets.

@agragregra
Created January 6, 2020 22:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agragregra/f3a2c89eb31164ec57b63f07c0af7f9d to your computer and use it in GitHub Desktop.
Save agragregra/f3a2c89eb31164ec57b63f07c0af7f9d to your computer and use it in GitHub Desktop.
on run {input, parameters}
set phrase to input as string
set phrase to quoted form of phrase
set ui_lang to "ru"
set from_lang to "auto"
set to_lang to "ru"
do shell script "open 'https://translate.google.com/?hl='" & ui_lang & "'&sl='" & from_lang & "'&tl='" & to_lang & "'&text='" & phrase
end run
@skazhikadyadya
Copy link

Очень хорошо, а как использовать в альфреде? Вместо trans?

@applesean
Copy link

This doesn't seem to work in Big Sur 11.1. Any thoughts why?

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