check the source code for more information. default is using google api (accessable from mainland)
# ./eztrans --help
usage: eztrans [-h] [-s [S]] [-d [D]] content
Simple commandline translator by https://github.com/matrix1001
positional arguments:
content
optional arguments:
-h, --help show this help message and exit
-s [S] language shortcut. like zh, en, ja......
-d [D] language shortcut. like zh, en, ja......
# ./eztrans hello
你好
# ./eztrans hola
你好
# ./eztrans -s en -d es 'this is a good day today'
este es un buen día hoy
# ./eztrans -s en -d ja 'have a try'
試してみる