1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-06 18:55:26 +02:00
tldr/pages/common/trans.md
Managor 23340cc6e0
common/*: reduce usage of "command-line" (part 1) (#16949)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-29 11:48:18 +03:00

554 B

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}}