macOS
brew install translate-shelllocal Homebrew formula metadata
sudo port install translate-shellMacPorts ports tree · textproc/translate-shell/Portfile · 来源: api.github.com
安装
brew install translate-shelllocal Homebrew formula metadata
sudo port install translate-shellMacPorts ports tree · textproc/translate-shell/Portfile · 来源: api.github.com
sudo apk add translate-shellAlpine Linux edge package indexes · translate-shell · 来源: dl-cdn.alpinelinux.org
sudo apt install translate-shellDebian stable package indexes · translate-shell · 来源: deb.debian.org
sudo dnf install translate-shellFedora Rawhide package metadata · translate-shell · 来源: dl.fedoraproject.org
nix profile install nixpkgs#translate-shellnixpkgs package indexes · pkgs/by-name/tr/translate-shell/package.nix · 来源: api.github.com
sudo pacman -S translate-shellArch Linux sync databases · translate-shell · 来源: geo.mirror.pkgbuild.com
sudo zypper install translate-shellopenSUSE Tumbleweed package metadata · translate-shell · 来源: download.opensuse.org
概览
Command-line translator using Google Translate and more
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.trans可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
trans | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/soimort/translate-shell
安装元数据
| 软件包键 | brew:translate-shell |
|---|---|
| 版本 | 0.9.7.1 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/translate-shell |
| 主页 | https://www.soimort.org/translate-shell |
| 仓库 | https://github.com/soimort/translate-shell |
| 上游文档 | https://www.soimort.org/translate-shell |
| 许可证 | Unlicense |
| 源码归档 | https://github.com/soimort/translate-shell/archive/refs/tags/v0.9.7.1.tar.gz |
| 依赖 | fribidi, gawk, rlwrap |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
| 注意事项 | 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'. |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-shell来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.