Nowadays DeepL is considered to produce better results than Google Translate. It even has an HTTP API, for which you can register for free (for some value of free): https://www.deepl.com/pro-api?cta=header-pro-api
I don't know about this "trans" command of yours, but coding a wrapper script for a HTTP API is trivial in Perl.
In reply to Re: De-googleizing translation scripts
by kikuchiyo
in thread De-googleizing translation scripts
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |