コマンドラインでGoogle翻訳する
注意編集
インストール編集
基本編集
基本形。
trans 翻訳元:翻訳先 "hello world"
こんな感じ。
trans en:ja "hello world"
言語一覧表示は「-R」。
trans -R
翻訳元を指定しなければ自動認識。
trans :ja "hello world"
翻訳先も指定しなければOSの言語(日本語)になる。
trans "hello world"
辞書モード編集
単語などの意味を調べたい場合は「-d」。 dictionaryのdだ。bじゃないよ。
trans -d hello
訳文のみ表示編集
元文章を表示しない場合は「-b」を付ける。
trans -b :ja "hello world"