translate_core 0.1.21

This crate implements Google Traduction and Yandex API in rust without any key needed (so free but limited to 5000 caracters) docs: https://docs.rs/translate_core
Documentation

Translate is the first translation crate in Rust This crate is based on Google and Yandex translators The langage detection is also supported

Requirements:

  • An internet connection
  • OpenSSL

Warning:

  • This crate use reqwest

Functionnalities:

  • Langage detection (supports: [EN,DE,FR,ES,IT,NL,RU])
  • Translation (supports: [EN,DE,FR,ES,IT,NL,RU])

Examples:

use translate_core::*;
translate(google(),"This is an test for the translation".to_string(),Langage::EN,Langage::FR,|result| {
    println!("{}",result.unwrap());
});
use translate_core::*;
detect(yandex(),"This is an test for the detection".to_string(),|result| {
    println!("{}",result.unwrap());
});