Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.09 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.09 KB

dl-translate

An Enlightware® software.

Overview

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.

License

Licensed under either of

at your option.