A simple script that auto detects language and translates the highlighted text to english.
https://github.com/soimort/translate-shell https://github.com/kfish/xsel
sudo apt install translate-shell
sudo apt install xsel
set up a hotkey so that it translates the highlighed text