导读 | Translate Shell是一个支持 Google Translate、Bing Translator、Yandex.Translate 和 Apertium 翻译引擎的命令行翻译器,默认使用的是Google Translate 引擎。 |
$ trans 'Saluton, Mondo!' Saluton, Mondo! Hello, World! Translations of Saluton, Mondo! [ Esperanto -> English ] Saluton , Hello, Mondo ! World!
除了普通查询用法,还可以以交互的方式使用:
$ trans -shell -brief > Rien ne réussit comme le succès. Nothing succeeds like success. > Was mich nicht umbringt, macht mich stärker. What does not kill me makes me stronger. > Юмор есть остроумие глубокого чувства. Humor has a deep sense of wit. > 學而不思則罔,思而不學則殆。 Learning without thought is labor lost, thought without learning is perilous. > 幸福になるためには、人から愛されるのが一番の近道。 In order to be happy, the best way is to be loved by people.
Translate Shell 兼容 POSIX 系统,包括但不限于:
GNU/Linux
macOS
*BSD
Android(通过 Termux)
Windows(通过 WSL、Cygwin 或 MSYS2)
原文来自:https://www.oschina.net/p/translate-shell
本文地址:https://www.linuxprobe.com/translate-shell.html编辑:张建,审核员:逄增宝
Linux命令大全:https://www.linuxcool.com/
Linux系统大全:https://www.linuxdown.com/
红帽认证RHCE考试心得:https://www.rhce.net/