macOS
brew install translate-shelllocal Homebrew formula metadata
sudo port install translate-shellMacPorts ports tree · textproc/translate-shell/Portfile · source: api.github.com
brew
Command-line translator using Google Translate and more. Version 0.9.7.1 via Homebrew; verified from local package data.
install
brew install translate-shelllocal Homebrew formula metadata
sudo port install translate-shellMacPorts ports tree · textproc/translate-shell/Portfile · source: api.github.com
sudo apk add translate-shellAlpine Linux edge package indexes · translate-shell · source: dl-cdn.alpinelinux.org
sudo apt install translate-shellDebian stable package indexes · translate-shell · source: deb.debian.org
sudo dnf install translate-shellFedora Rawhide package metadata · translate-shell · source: dl.fedoraproject.org
nix profile install nixpkgs#translate-shellnixpkgs package indexes · pkgs/by-name/tr/translate-shell/package.nix · source: api.github.com
sudo pacman -S translate-shellArch Linux sync databases · translate-shell · source: geo.mirror.pkgbuild.com
sudo zypper install translate-shellopenSUSE Tumbleweed package metadata · translate-shell · source: download.opensuse.org
overview
Command-line translator using Google Translate and more
history
Translate Shell is a POSIX-oriented command-line translator, distributed as the `trans` command, that queries online translation engines from a terminal. It began under the name Google Translate CLI and later broadened into a multi-engine tool.
The official README identifies Translate Shell as formerly Google Translate CLI and describes Google Translate as the default engine, with Bing Translator, Yandex.Translate, and Apertium also supported. The tool is implemented around GNU Awk plus a shell wrapper, which made it unusually portable for a network-facing terminal utility.
The project documents multiple installation styles: a self-contained downloadable executable, package-manager installation, Zsh Antigen integration, Git builds, and Docker. Official release metadata shows the 0.9.6 line active through the late 2010s and the 0.9.7 line released in 2022 and 2023.
Translate Shell became a package-manager staple because it solved a common terminal-user problem without requiring a browser or GUI. Its README says it works on GNU/Linux, macOS, BSD, Android through Termux, and Windows through WSL, Cygwin, or MSYS2, and the input facts show packaging across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, and openSUSE.
The tool's adoption also reflects shell culture: it can translate command arguments, standard input, multi-line text, or interactive shell input, and optional dependencies such as rlwrap, paging tools, text-to-speech programs, and spell checkers improve the terminal experience without becoming mandatory.
Users call `trans` with source and target language expressions, such as `:fr`, `en:zh`, or multiple target languages joined with plus signs. It supports verbose output, brief mode, dictionary mode, language identification, interactive shell mode, standard input, and optional display handling for bidirectional scripts.
For package nerds, Translate Shell is the classic example of turning a web translation service into a Unix filter. It is small enough to install everywhere, scriptable enough for dotfiles and editor hooks, and packaged widely enough that the same `trans` muscle memory works across Linux distributions and macOS.
Its Awk implementation and self-contained executable also make it a useful case study in packaging network-dependent command-line tools: the binary-like script is easy to distribute, while optional dependencies and upstream web-service changes are where maintainers feel the operational cost.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
~/.translate-shell/init.trans$XDG_CONFIG_HOME/translate-shell/init.transexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
trans | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/soimort/translate-shell
install metadata
| Package key | brew:translate-shell |
|---|---|
| Version | 0.9.7.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/translate-shell |
| Homepage | https://www.soimort.org/translate-shell |
| Repository | https://github.com/soimort/translate-shell |
| Upstream docs | https://www.soimort.org/translate-shell |
| License | Unlicense |
| Source archive | https://github.com/soimort/translate-shell/archive/refs/tags/v0.9.7.1.tar.gz |
| Dependencies | fribidi, gawk, rlwrap |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | By default, text-to-speech functionality is provided by macOS's builtin `say' command. This functionality may be improved in certain cases by installing one of mplayer, mpv, or mpg123, all of which are available through `brew install'. |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | translate-shell |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
translate-shell 0.9.7.1-2
Command-line translator using Google Translate, etc.
https://github.com/soimort/translate-shell
sudo apt install translate-shelltranslate-shell
nix profile install nixpkgs#translate-shelltranslate-shell 0.9.7.1-2
Command-line translator using Google Translate, etc.
https://github.com/soimort/translate-shell
sudo apt install translate-shelltranslate-shell 0.9.7.1-r2
Command-line online translator
https://www.soimort.org/translate-shell/
sudo apk add translate-shelltranslate-shell-doc 0.9.7.1-r2
Command-line online translator (documentation)
https://www.soimort.org/translate-shell/
sudo apk add translate-shell-doctranslate-shell 0.9.7.1-8.fc44
A command-line online translator
https://github.com/soimort/translate-shell
sudo dnf install translate-shelltranslate-shell 0.9.7.1-2
A command-line interface and interactive shell for Google Translate
https://www.soimort.org/translate-shell/
sudo pacman -S translate-shelltranslate-shell 0.9.7.1-1.6
Command line translator using various online services as backends
https://www.soimort.org/translate-shell
sudo zypper install translate-shelltranslate-shell
sudo port install translate-shellsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.