First,with git installed, clone the repository and run the install.sh script.
git clone https://github.com/cncsmonster/trans-go
cd trans-go
./install.shOr
go install github.com/cncsmonster/trans-go@latesti usually alias the command to trans in my .bashrc or .zshrc file.
alias trans='trans-go'Then you can use it like this:
trans "hello world"