#translation #deep-l #flutter #lib #applications #language #arb

arb-lib

Localize flutter apps with DeepL AI translations

1 unstable release

0.1.0 May 9, 2024

#441 in Template engine


Used in arb

MIT/Apache

31KB
650 lines

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

Dependencies

~7–18MB
~238K SLoC