Bonny07 6012d72ba0 test(translate): add hermetic unit tests for lang resolution, preflight, and oneshot request/decode
The translate package had no tests. These are fully hermetic: callOneshot is exercised against httptest, so go test ./... stays offline and fast.

Covers lang resolution (incl. the EN/PT target-vs-source asymmetry), TranslateByDeepLX preflight validation (404/400/413, pre-network only), callOneshot request shaping and gzip/deflate/br decoding, newInstanceID UUIDv4 shape, and the oneshotRequest JSON contract.
2026-07-08 09:57:56 +09:00
2024-03-02 02:47:18 -05:00
2024-03-20 16:52:54 -04:00
2026-05-22 12:23:11 +08:00
2024-12-22 14:18:30 -05:00
2023-02-18 20:55:20 +08:00
2022-10-20 02:12:18 +08:00
2022-10-20 02:11:14 +08:00
2024-11-30 19:56:38 -05:00

GitHub Workflow Go Version Go Report GitHub License Docker Pulls Releases

How to use

[!TIP]

Learn more about 📘 Using DeepLX by checking it out.

Discussion Group

Telegram Group

Acknowledgements

Contributors

Activity

Alt

License

FOSSA Status

S
Description
DeepL Free API (No TOKEN required)
Readme MIT
1.5 MiB
Languages
Go 94.7%
Shell 4.7%
Dockerfile 0.6%