25 releases

new 0.6.5 Dec 3, 2024
0.6.4 Aug 21, 2024
0.6.3 Apr 28, 2024
0.6.2 Mar 19, 2024
0.1.4 Nov 29, 2022

#377 in Web programming

Download history 373/week @ 2024-08-17 25/week @ 2024-08-24 123/week @ 2024-08-31 269/week @ 2024-09-07 262/week @ 2024-09-14 386/week @ 2024-09-21 94/week @ 2024-09-28 351/week @ 2024-10-05 218/week @ 2024-10-12 92/week @ 2024-10-19 61/week @ 2024-10-26 556/week @ 2024-11-02 498/week @ 2024-11-09 293/week @ 2024-11-16 142/week @ 2024-11-23 184/week @ 2024-11-30

1,185 downloads per month
Used in 2 crates

MIT license

58KB
1K SLoC

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.6"
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.

Collaboration

If you find any bugs in this project or feel confused about any part of the code, feel free to open new issue.

If you want to submit some code modification but don't know how to setup the code environment, you can follow the Nix Installation and enable flakes support. Then simply run nix develop in the project root, all the build dependencies will setup for you.

License

MIT

Dependencies

~7–18MB
~236K SLoC