Forked from justwolf's "stranslate" which is unmaintained. I will continue to maintain this as long as I continue to use it.
Original repo URL: https://codeberg.org/justwolf/stranslate
stranslate is a simple shell script that allows you to translate text from your terminal, using a privacy-friendly backend.
stranslate uses SimplyTranslate as a backend, which is an ethical translation service that doesn't require JavaScript. SimplyTranslate can use both Google Translate and LibreTranslate, without compromising your privacy.
Basic usage:
stranslate -f "Chinese" -t "English" -i "你好"
stranslate "你好"
For detailed information about the usage of the program, see the manual.
Debian packages for easy installation are provided in the Github 'Releases' section and on the deb.rail5.org repository.