Translate Flutter application resource bundles.
Examples
Create a translation application resource bundle:
use ;
let api_key: var.unwrap;
let api = new;
let options = new;
let mut intl = new?;
let result = intl.translate.await?;
println!;
Translate Flutter application resource bundles.
Create a translation application resource bundle:
use arb_lib::{Intl, deepl::{DeeplApi, ApiOptions, Lang}};
let api_key: std::env::var("DEEPL_API_KEY").unwrap();
let api = DeeplApi::new(ApiOptions::new(api_key));
let options = TranslationOptions::new(Lang::Fr);
let mut intl = Intl::new("l10n.yaml")?;
let result = intl.translate(&api, options).await?;
println!("{:#?}", result);