Skip to content

ksk001100/gtrans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gtrans

crates.io Build Status

Google translation CLI tool written in Rust

install

$ cargo install gtrans

In macOS you can install it with Homebrew

$ brew tap ksk001100/homebrew-gtrans
$ brew install gtrans

usage

Default translation source is ja and target is en.

The source and target can be changed by setting the environment variables GTRANS_SOURCE and GTRANS_TARGET.

The source and target can be changed by specifying the --source and --target flags. In that case, the flags take precedence over the environment variables.

$ gtrans こんにちは世界
$ export GTRANS_SOURCE=en
$ export GTRANS_TARGET=ja
$ gtrans Hello world
$ GTRANS_SOURCE=en GTRANS_TARGET=ja gtrans Hello world
$ gtrans Hello world --source en --target ja
$ gtrans Hello world -s en -t ja
$ gtrans Bonjour, monde -s fr -t en

About

Google translation CLI tool written in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages