Lingual
Provides google translation api for Rust.
Example
The crate uses reqwest to make http calls and by default uses async/await syntax.
use
let translator = new;
let translation = translator
.translate
.await
.unwrap;
assert_eq!;
If you prefer to use regular sync version, simply include blocking feature in your Cargo.toml file.
= { = "1.0.0", = ["blocking"]}
use
let translator = new;
let translation = translator
.translate
.unwrap;
assert_eq!;