A small translate CLI tool using Google Translate without requiring an API key. It relies on Google Translate's internal web endpoint so it will probably break at some point.
- default -from=ro; default -to=en
> translate salutare tuturor
hello everyone- some non-defaults
> translate -from en -to ja hello there
こんにちは
> translate -from en -to sl "Are you there?"
Ste tam?- piping input
> echo "Hello. I like your hairstyle." | translate -from en -to es
Hola. Me gusta tu peinado.- input redirection
> echo "hello" > file.txt
> translate -from en -to es < file.txt
Hola