24 releases

0.6.4 Aug 21, 2024
0.6.3 Apr 28, 2024
0.6.2 Mar 19, 2024
0.4.4 Nov 20, 2023
0.1.4 Nov 29, 2022

#506 in HTTP client

Download history 131/week @ 2024-07-26 44/week @ 2024-08-02 40/week @ 2024-08-09 226/week @ 2024-08-16 179/week @ 2024-08-23 123/week @ 2024-08-30 257/week @ 2024-09-06 272/week @ 2024-09-13 313/week @ 2024-09-20 166/week @ 2024-09-27 248/week @ 2024-10-04 302/week @ 2024-10-11 116/week @ 2024-10-18 52/week @ 2024-10-25 498/week @ 2024-11-01 418/week @ 2024-11-08

1,119 downloads per month
Used in 2 crates

MIT license

60KB
1.5K 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
~232K SLoC