Crates.io | rustlate |
lib.rs | rustlate |
version | 1.0.0 |
source | src |
created_at | 2021-09-27 20:37:10.84041 |
updated_at | 2021-09-28 17:43:24.476597 |
description | Really simple free google translate library for Rust. |
homepage | https://gitlab.com/aiocat/rustlate |
repository | https://gitlab.com/aiocat/rustlate |
max_upload_size | |
id | 457160 |
size | 6,209 |
Really simple free google translate library for Rust.
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"));
}
If you want to contribute this project:
This project is distributed under MIT license.
Under development.