translate-shell

Command-line translator using Google Translate and other services

brewmacoslinux
Try with needOr install directly
Source

About

Command-line translator using Google Translate and more

Commands

trans

Examples

Translate English text to Spanish$ trans :es 'Hello, how are you?'
Translate Spanish to English and show pronunciation$ trans es:en -p 'Hola, ¿cómo estás?'
Translate from stdin and show detailed output with definitions$ echo 'buenos días' | trans es:en -v