命令行翻译工具translate-shell

translate-shell

mac安装

$ mkdir tools
$ cd tools
$ git clone https://github.com/soimort/translate-shell
$ cd translate-shell/
$ make
[OK] Task build completed.
$ sudo make install
[OK] Task build completed.
[OK] translate-shell installed.
如果有gawk报错:
$ brew install gawk

进入命令行翻译

$ trans :zh -b -shell
Translate Shell
(:q to quit)
> english
英语
> trans
反式
> hello world
你好,世界
> :q
退出
posted @ 2017-11-03 18:42  wtli  阅读(1383)  评论(0编辑  收藏  举报