translators

translators is an async/sync library for Google Translator and Deepl without an API key and limits.
Ащк
Async example
use translators::{GoogleTranslator, Translator};
#[tokio::main]
async fn main() {
let trans = GoogleTranslator::default();
let a = trans
.translate_async("Hello, world!", "", "ru")
.await
.unwrap();
println!("{a}");
}
Add to the dependency:
[dependencies]
translators = { version = "0.1.1", features = ["google"] }
tokio = { version = "1.38.0", features = ["rt-multi-thread"] }
Sync example
use translators::{GoogleTranslator, Translator};
fn main() {
let trans = GoogleTranslator::default();
let a = trans
.translate_sync("Hello, world!", "", "ru")
.unwrap();
println!("{a}");
}
Add to the dependency:
[dependencies]
translators = { version = "0.1.1", features = ["google"] }
Additional Information
For more details, guides, and advanced usage, please refer to the examples and official documentation.