Norne9 / deepl-rs

Typily interact with DeepL API

Repository from Github https://github.comNorne9/deepl-rsRepository from Github https://github.comNorne9/deepl-rs

DeepL Api

github crates.io docs.rs

Typed HTTP wrapper for interacting with DeepL API. File upload/download is also implemented.

Usage

[dependencies]
deepl = "0.4"
use deepl::{DeepLApi, Lang};

let api = DeepLApi::with("YOUR AUTH KEY").new();
let translated = api.translate_text("Hello World", Lang::ZH)
                .await.unwrap();

let sentences = translated.translations;
assert_eq!(sentences[0].text, "你好,世界");

Read examples for more usage.

License

MIT

About

Typily interact with DeepL API

License:MIT License


Languages

Language:Rust 100.0%