Yet another translate-shell plugin for rofi. Borrowed quite a bit of code from rofi-calc
Currently rofi-ts provides flake for nix users.
If you are not using nix as package manager, you can clone this repo and compile the plugin yourself.
rofi-dev(orrofi-devel)translate-shell(runtime dependency)libtool
rofi-ts uses autotools as build system. If installing from git, the following steps should install it:
autoreconf -i
mkdir build
cd build/
../configure
make
make installrofi -show ts -modi tsType the sentence to translate. By default, translate-shell guesses the language to translate from, and translates it to your system locale.
You can prefix your query with language info:
fr:en Bonjourwill translate 'Bonjour' from french to english:fr Hellowill translate 'Hello' from your locale to frenchfr: Nombrewill translate 'Nombre' from french to your locale
rofi -show ts -modi ts -ts-command "notify-send 'rofi-ts' '{result}'"This will show a notification with the translation result.

