oxcomm

Crates.iooxcomm
lib.rsoxcomm
version0.1.2
sourcesrc
created_at2024-12-12 00:08:21.686322
updated_at2024-12-12 21:07:50.049292
descriptionA library for using Google Translate on the fly.
homepagehttps://github.com/drkrssll/oxcomm
repositoryhttps://github.com/drkrssll/oxcomm
max_upload_size
id1480655
size3,865
Derek Russell (drkrssll)

documentation

README

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(())
}
Commit count: 7

cargo fmt