arb 0.1.0

Localize flutter apps with DeepL AI translations
1
2
3
4
5
6
7
8
9
10
use anyhow::Result;
use arb_lib::deepl::{ApiOptions, DeeplApi};

#[tokio::test]
pub async fn usage() -> Result<()> {
    let api = DeeplApi::new(ApiOptions::new(&std::env::var("DEEPL_API_KEY").unwrap()));
    let usage = api.usage().await?;
    assert!(usage.character_limit > 0);
    Ok(())
}