$ wget git.io/trans
$ chmod +x ./trans
$ mv ./trans /usr/local/bin/trans
$ trans -version
Translate Shell 0.9.6.4-release
platform Darwin
gawk (GNU Awk) 4.1.4
fribidi (GNU FriBidi) [NOT INSTALLED]
audio player [NOT INSTALLED]
terminal pager less
terminal type xterm-256color
user locale ja_JP.UTF-8 (Japanese)
home language ja
source language auto
target language ja
translation engine google
proxy [NONE]
user-agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/602.1 (KHTML, like Gecko) Version/8.0 Safari/602.1 Epiphany/3.18.2
theme default
init file [NONE]
Report bugs to: https://github.com/soimort/translate-shell/issues
試す
% trans ja:en 眠いzzz
眠いzzz
(Nemui zzz)
Sleepy zzz
「眠いzzz」の翻訳
[ 日本語 -> English ]
眠いzzz
Sleepy zzz
試す。
% trans ja:en 'まだ翻訳で消耗してるの?'
まだ翻訳で消耗してるの?
(Mada hon'yaku de shōmō shi teru no?)
Are you still consuming in translation?
「まだ翻訳で消耗してるの?」の翻訳
[ 日本語 -> English ]
まだ翻訳で消耗してるの?
Are you still consuming in translation?, Are you still consumed in the translation?
試す。(オートコレクトがデフォで効いてるらしい。)
% trans ja:en 起きんわ
Showing translation for: (use -no-auto to disable autocorrect)
沖縄
(Okinawa)
Okinawa
「沖縄」の翻訳
[ 日本語 -> English ]
沖縄
Okinawa