1. 程式人生 > >命令行翻譯工具translate-shell

命令行翻譯工具translate-shell

ans pre translate 工具 退出 gawk 安裝 code sudo

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
退出

命令行翻譯工具translate-shell