tldr/pages/common/trans.md

25 lines
522 B
Markdown
Raw Normal View History

2017-10-27 15:53:15 +01:00
# trans
> Translate Shell is a command-line translator.
2019-05-14 17:18:51 +01:00
> Homepage: <https://github.com/soimort/translate-shell>.
2017-10-27 15:53:15 +01:00
- Translate a word (language is detected automatically):
`trans "{{word_or_sentence_to_translate}}"`
- Get a brief translation:
`trans --brief "{{word_or_sentence_to_translate}}"`
- Translate a word into french:
`trans :{{fr}} {{word}}`
2017-10-27 15:53:15 +01:00
- Translate a word from German to English:
2017-10-27 15:53:15 +01:00
2017-11-02 12:31:21 +00:00
`trans {{de}}:{{en}} {{Schmetterling}}`
2017-10-27 15:53:15 +01:00
- Behave like a dictionary to get the meaning of a word:
2017-10-27 15:53:15 +01:00
2017-11-02 12:31:21 +00:00
`trans -d {{word}}`