2017-10-27 16:53:15 +02:00
|
|
|
# trans
|
|
|
|
|
2017-10-30 23:07:30 +01:00
|
|
|
> Translate Shell is a command-line translator.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://github.com/soimort/translate-shell>.
|
2017-10-27 16:53:15 +02: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:
|
|
|
|
|
2017-10-30 23:07:30 +01:00
|
|
|
`trans :{{fr}} {{word}}`
|
2017-10-27 16:53:15 +02:00
|
|
|
|
2017-10-30 23:07:30 +01:00
|
|
|
- Translate a word from German to English:
|
2017-10-27 16:53:15 +02:00
|
|
|
|
2017-11-02 13:31:21 +01:00
|
|
|
`trans {{de}}:{{en}} {{Schmetterling}}`
|
2017-10-27 16:53:15 +02:00
|
|
|
|
2017-10-30 23:07:30 +01:00
|
|
|
- Behave like a dictionary to get the meaning of a word:
|
2017-10-27 16:53:15 +02:00
|
|
|
|
2017-11-02 13:31:21 +01:00
|
|
|
`trans -d {{word}}`
|