arb-lib 0.1.0

Localize flutter apps with DeepL AI translations
Documentation

Translate Flutter application resource bundles.

Examples

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);