Command-line translator using Google Translate and others
Translate Shell is a powerful command-line translator that brings multiple translation engines directly to your terminal. It supports Google Translate (default), Bing Translator, Yandex.Translate, and Apertium, giving users access to high-quality translations without leaving the command line. The tool can automatically detect source languages and translate to your system locale by default, making quick translations effortless.
The tool offers multiple interaction modes to suit different workflows. You can translate single words, phrases, or entire sentences with simple commands, use it in brief mode for concise output, or launch an interactive shell for continuous translation sessions. Advanced features include dictionary mode for word definitions, language identification, text-to-speech functionality, and proper support for right-to-left languages through GNU FriBidi.
Translate Shell is ideal for developers, system administrators, linguists, and anyone who frequently works in terminal environments and needs quick access to translations. It works across POSIX-compliant systems including GNU/Linux, macOS, BSD variants, Android (via Termux), and Windows (through WSL, Cygwin, or MSYS2). The tool requires GNU Awk 4.0+ and bash/zsh, with optional dependencies for enhanced functionality like audio playback and spell checking.
# via Direct Download
wget git.io/trans && chmod +x ./trans
# via Git Clone
git clone https://github.com/soimort/translate-shell && cd translate-shell/ && make && sudo make install
# via Docker
docker pull soimort/translate-shell