Translate a phrase with Google translate and display output in alfred
If you are a Mac user, I’m sure you heard about Alfred, it’s, as far as I know the best launcher. Alfred will speed up your work and make your mouse kind of useless.
Translator accept at least one mandatory parameter.
First parameter: phrase or word you want to translate enclosed in double quotes;
Second parameter (optional): target language (en, fr, de, hu, ...). "En" default;
Third paramerer (optional): source language (auto, fr, de, it, ...). "Auto" default;
Example:
- trans "hello world" es en -----> hola mundo
- trans "hello world" es -----> hola mundo
- trans "hola mundo" -----> hello world