Tags: OwO-Network/DLX
Tags
v1.2.2 Reject text exceeding the 1500-character anonymous oneshot limit upfront with HTTP 413 instead of forwarding the request and letting DeepL 400 it. Cap the upstream HTTP call at 20 seconds and map deadline-exceeded errors to HTTP 504 so callers no longer hang indefinitely on a stuck DeepL. Share one req.Client across translate calls and trigger the cookie-jar warmup in the background to reuse the kept-alive TLS / HTTP/2 connection — measured ~40-50% faster on the warm path vs creating a fresh client per request.
v1.2.1 Validate source/target language codes against the supported set (the 38 codes the official Chrome extension bundles in background.js) and return HTTP 400 with a hint listing valid codes instead of silently echoing the input back when the code is unsupported. New languages: ES-419, HE, VI.
v1.2.0 Migrate translation backend from www2.deepl.com/jsonrpc (LMT_handle_texts) to the oneshot endpoint (oneshot-free.www.deepl.com/v1/translate) used by the official Chrome extension and iOS app. Outbound requests are aligned byte-for-byte with a chrome-extension fetch() (TLS, HTTP/2, headers, body shape, cookies). Pro callers: the -s flag now carries an OAuth Bearer token rather than the legacy dl_session cookie.
PreviousNext