Command-line translator for text, files, and web pages using Google, Bing, Yandex, or Apertium backends.
$wget git.io/trans && chmod +x ./trans
AI Analysis
Translate Shell is a command-line translator that wraps public Google, Bing, Yandex, and Apertium translation backends behind one trans command. It can translate inline text, stdin, files, and simple web pages, with extra modes for language identification, dictionaries, and speech output.
What It Enables
- Translate ad hoc text, piped stdin, or input files into one or more target languages and write the result to stdout or a file.
- Detect source languages, inspect supported language codes, and pull dictionary-style explanations or alternative translations when you need more than a single translated phrase.
- Open translated web pages in a browser or play and download speech audio for translated text when a workflow needs quick localization or pronunciation help.
Agent Fit
-brief, stdin, stdout,-input, and-outputmake one-shot translation easy to drop into shell pipelines or small automation steps.- Most output is formatted for humans, and
-dumponly exposes raw upstream responses rather than a stable JSON contract owned by the tool. - Useful when an agent needs lightweight multilingual text transformation, but less dependable for unattended workflows because it relies on public translation endpoints and optional local helpers for audio, browser, or bidi support.
Caveats
- Requires GNU Awk plus
bashorzsh; audio, paging, bidi, and readline features need extra local programs. - Backend availability and raw response formats depend on external translation services outside the tool's control.