rustlate

Crates.iorustlate
lib.rsrustlate
version1.0.0
sourcesrc
created_at2021-09-27 20:37:10.84041
updated_at2021-09-28 17:43:24.476597
descriptionReally simple free google translate library for Rust.
homepagehttps://gitlab.com/aiocat/rustlate
repositoryhttps://gitlab.com/aiocat/rustlate
max_upload_size
id457160
size6,209
0x707 (aiocat)

documentation

README

Rustlate

Really simple free google translate library for Rust.

Links

Example Usage(s)

use rustlate;

fn main() {
    let translator_struct = rustlate::Translator{
        to: "tr",
        from: "en"
    };


    match translator_struct.translate("hello.") {
        Ok(translated) => println!("Result: {}", translated),
        Err(_) => println!("Something went wrong...")
    }
}
use rustlate;

fn main() {
    println!("{:?}", rustlate::translate_auto("hello", "tr"));
}

Found a bug? Got an error?

  • I'm still learning Rust, so may this library can has some bugs / errors. If you found an one, please open an issue at gitlab repository.

Contributing

If you want to contribute this project:

  • Make sure you add the comments for your codes.
  • Please do not something useless.

Authors

License

This project is distributed under MIT license.

Project status

Under development.

Commit count: 9

cargo fmt