trans: add page (#1590)

This commit is contained in:
Starbeamrainbowlabs
2017-11-04 11:31:25 +00:00
committed by GitHub

23
pages/common/trans.md Normal file
View File

@@ -0,0 +1,23 @@
# trans
> Translate Shell is a command-line translator.
- 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}}`
- Translate a word from German to English:
`trans {{de}}:{{en}} {{Schmetterling}}`
- Behave like a dictionary to get the meaning of a word:
`trans -d {{word}}`