This is a fork of the original Translate extension by Nastuzzi Samy (@NastuzziSamy) with improved functionalities.
This extension requires Translate Shell in order to work.
Open Ulauncher's preferences window > Extensions > Add Extension and paste the following URL:
https://github.com/dddddavid02/ulauncher-translate
Open the folder containing all Ulauncher extensions and move the extensions's folder inside or just git clone
this repository.
$HOME/.local/share/ulauncher/extensions
In Ulauncher's settings, you can customise:
-
Translate keyword
- Default:
trans
- Default:
-
From language
- Default:
auto
- Indicate languages as
en
,it
,fr
,es
...
- Default:
-
To language
To translate, open Ulauncher and type the set keyword (by default it's trans
),
then simply type or paste the text and wait for the result!
By clicking or pressing ENTER on a translation, you can select whether you want to copy it or open it in Google Translate.
By default, it will autodetect your language and translate accordingly.
You can also specify languages in this format from_language:to_language
.
If you decide to not indicate either one or the other parameter, the default values will be used.
It's also possible to translate to multiple languages at once using the +
operator.
For example:
trans en:fr
to translate from English to Frenchtrans :fr
to translate from the detected language to Frenchtrans en:
to translate from English to your languagetrans en:fr+es
to translate from English to French and Spanish
-sp
: to read what you entered-p
: to read the translation