Files
cheatsheet-tldr/tldr/trans
2025-06-30 00:22:10 +00:00

30 lines
647 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# trans
> Translate Shell, a command-line translator.
> More information: <https://github.com/soimort/translate-shell>.
- Translate a word (language is detected automatically):
`trans "{{word_or_sentence_to_translate}}"`
- Get a brief translation:
`trans {{[-b|-brief]}} "{{word_or_sentence_to_translate}}"`
- Translate a word into french:
`trans :{{fr}} {{word}}`
- Translate a word from German to English:
`trans {{de}}:{{en}} {{Schmetterling}}`
- Behave like a dictionary to get the meaning of a word:
`trans {{[-d|-dictionary]}} {{word}}`