A Rust-based CLI to query a translation from DeepL using an API key.
You need to place your API key in the file CONFIG/dl-translate.toml
with the following format:
auth_key = "KEY_UUID"
where CONFIG
is the standard config directory of your platform.
Then, install Rust and build:
cargo build
You can then translate a single text snippet:
target/debug/dl-translate TEXT TARGET_LANG [SOURCE_LANG] [more/less (FORMALITY)]
Or pipe some input:
CMD | target/debug/dl-translate TARGET_LANG [SOURCE_LANG] [more/less (FORMALITY)]
where X_LANG
is a DeepL-support language tag.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.