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
退出
时间: 2024-10-15 23:15:23