瀏覽代碼

trans: add page (#1590)

Starbeamrainbowlabs 7 年之前
父節點
當前提交
1387b02a69
共有 1 個文件被更改,包括 23 次插入0 次删除
  1. 23 0
      pages/common/trans.md

+ 23 - 0
pages/common/trans.md

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