translate-shell - 命令行翻译工具


public domain
Linux

软件简介

Translate Shell (之前的 Google Translate CLI ) 是个命令行翻译工具,由 Google
Translate
驱动。可以让你在终端轻松的访问谷歌翻译:

$ trans 'Saluton, Mondo!'
Saluton, Mondo!

Hello, World!

Translations of Saluton, Mondo!
[ Esperanto -> English ]
Saluton ,
    Hello,
Mondo !
    World!

默认的,翻译有详细解释:

$ trans -brief 'Saluton, Mondo!'
Hello, World!

Translate Shell 也可以像交互 Shell 一样使用,输入文本,一行一行的翻译

$ 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.