A command-line tool for translating text and JSON files using the DeepL API.
- Translate text strings to multiple target languages
- Translate JSON files while preserving structure
- Support for configuration files and interactive config generation
- Parallel processing for multiple languages
- Java 17 or higher
- DeepL API key (get one at DeepL API)
src/main/java/de/vkoop/: Core implementationAppStarter.java: Application entry pointTranslateClient.java: DeepL API clientJsonTranslator.java: JSON processing utilities- Command classes for subcommands
src/test/: Unit and integration testsgradle/: Build configuration
- Build the project:
./gradlew build - Generate a config file:
./gradlew bootRun --args="generate-config" - Run a translation:
./gradlew bootRun --args="translate text --text 'Hello world' -f"
For complete usage instructions:
./gradlew bootRun --args="--help"
./gradlew bootRun --args="translate --help"
Create a distributable package:
./gradlew distZip
The distribution will be created in build/distributions/.
Source Languages: AR, BG, CS, DA, DE, EL, EN, ES, ET, FI, FR, HU, ID, IT, JA, KO, LT, LV, NB, NL, PL, PT, RO, RU, SK, SL, SV, TR, UK, ZH
Target Languages: All source languages plus: EN-GB, EN-US, PT-BR, PT-PT, ZH-HANS, ZH-HANT
Run tests: ./gradlew test