3 releases
0.1.2 | Dec 12, 2024 |
---|---|
0.1.1 | Dec 12, 2024 |
0.1.0 | Dec 12, 2024 |
#528 in Text processing
376 downloads per month
4KB
Oxcomm
A basic library containing a struct that translates text using Google Translate.
Usage
use oxcomm::Translator;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let translator = Translator::new("en", "auto");
let translated_text = translator.translate("Hola").await?;
println!("{}", translated_text);
Ok(())
}
Dependencies
~9–20MB
~279K SLoC