#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

#262 in Template engine

Download history 142/week @ 2024-05-06 6/week @ 2024-05-13

148 downloads per month
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

~12–26MB
~392K SLoC