// All translations are done through the `translate()` function. use libretranslate::{translate, Language}; #[tokio::main] async fn main() { let source = Language::French; let target = Language::English; let input = "Le texte français."; let data = translate(source, target, input, None).await.unwrap(); println!("Input {}: {}", data.source.as_pretty(), data.input); println!("Output {}: {}", data.target.as_pretty(), data.output); }