HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

trans — Translate Shell, a command-line translator. More information: <https://github.com/soimort/translate-

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shelltranslatecommandtransclitranslatorline

Problem

How to use the trans command: Translate Shell, a command-line translator. More information: <https://github.com/soimort/translate-shell>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/trans

Revisions (0)

No revisions yet.