About Translate Shell
Translate Shell, formerly called Google Translate CLI, gives terminal access to several translation engines. You run the trans command with a piece of text and it prints the translation, by default with detailed explanations alongside.
A brief mode prints only the most relevant translation, and an interactive shell mode lets you type text line by line and read each result straight away. The wrapper script needs bash or zsh, and the program as a whole relies on GNU Awk 4.0 or later.
It is known to work on GNU/Linux, macOS, the BSDs, Android through Termux, and Windows through WSL, Cygwin or MSYS2. Optional tools add text-to-speech, paging, spell checking, readline-style editing and right-to-left script display.
Key features
- Uses several online translation engines
- Brief mode shows only the best translation
- Interactive shell mode, one line at a time
- Text-to-speech through an installed player
- Optional spell checking in the shell
- Right-to-left scripts shown with FriBidi
Good fit for
- Quick word lookups from the terminal
- Translating lines in an interactive session
- Scripting translations in shell pipelines
Translate Shell: questions and answers
- What is Translate Shell used for?
- Translate Shell is a command-line translator that sends text to engines such as Google Translate, Bing Translator, Yandex.Translate and Apertium. It is a good fit for quick word lookups from the terminal, translating lines in an interactive session and scripting translations in shell pipelines.
- Is Translate Shell open source?
- Yes. Translate Shell is open source under the Unlicense. Its source code is on GitHub at soimort/translate-shell and is written mainly in Awk.
- Is Translate Shell free?
- Yes. Translate Shell is open source, so the software itself is free to use.
- Can I self-host Translate Shell?
- Yes. Translate Shell can be self-hosted on your own server or infrastructure.
- What is Translate Shell an alternative to?
- Translate Shell is an open-source alternative to Google Translate. Other open-source alternatives to Google Translate include LibreTranslate, Argos Translate and Mosesdecoder.
- Is Translate Shell actively maintained?
- The most recent commit to Translate Shell was on 10 December 2024, and the latest release is v0.9.7.1, published on 8 February 2023. The project has 7.5k stars on GitHub, with 7 added in the last 30 days.
Open-source alternatives to Translate Shell
See all
LibreTranslate
Localization
Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to set
AGPL-3.0vs Google Translate★ 18k
Argos Translate
Localization
Open-source offline translation library written in Python
MITvs Google Translate★ 6.6k
Mosesdecoder
Localization
Moses, the machine translation system
LGPL-2.1vs Google Translate★ 1.6k

Google Translate