Summary:
DeepL translation (Tools > Translate) silently does nothing with a valid
DeepL API Free key; request appears to use deprecated auth_key body
authentication (rejected by DeepL with 403 since 2026-01-15)
Product: LibreOffice
Component: Writer
Version: 26.2.6.3 release
Hardware/OS: x86-64 (AMD64) / Windows (All)
Blocks: 158359 ([META] Automatic / machine translation feature, DeepL integration)
See Also: DeepL translation silently fails: request still uses legacy auth_key body authentication (rejected by DeepL since Jan 2026) · Issue #16272 · CollaboraOnline/online · GitHub
Description:
With a valid DeepL API Free key (suffix :fx) and the API URL set to
https://api-free.deepl.com/v2/translate, Tools > Translate does not
translate anything and shows no error message.
The same key works outside LibreOffice when sent as documented by DeepL
(Authorization header), see “Additional facts” below.
Steps to reproduce:
- Tools > Options > LibreOffice > Advanced: enable “Enable experimental
features”, restart. - Tools > Options > Languages and Locales > DeepL Server:
API URL: https://api-free.deepl.com/v2/translate
Authentication key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx:fx (valid key) - New Writer document, type “Hello, world!”, select it.
- Tools > Translate, choose target language (e.g. German), OK.
Actual result:
The text is not translated. No error dialog is shown.
[Fill in exactly what is observed: progress bar? dialog closes? any message?]
Expected result:
The selected text is replaced by its translation, or, if DeepL rejects
the request, an error dialog shows the HTTP status and DeepL’s “message”.
Additional facts:
- The same key works from PowerShell against
https://api-free.deepl.com/v2/translate using the header
"Authorization: DeepL-Auth-Key " (request/response attached,
key masked). - DeepL removed auth_key query/body authentication; such requests “will
fail with a 403 Forbidden response” (deadline extended to 2026-01-15):
November 2025: Deprecation of query parameter and request body authentication - DeepL Documentation - In Collabora Online CODE 26.04.4.2 (based on LibreOffice core) a request
captured with a local listener shows
“POST /v2/translate?tag_handling=html” with body
“auth_key=…%3Afx&target_lang=DE&text=…” and no Authorization header;
this was fixed there by switching to the Authorization header:
DeepL translation silently fails: request still uses legacy auth_key body authentication (rejected by DeepL since Jan 2026) · Issue #16272 · CollaboraOnline/online · GitHub - The configured API URL is passed to CURLOPT_URL in
linguistic/source/translate.cxx (commit e20d2de7836d), i.e. no evidence
of a hard-coded api.deepl.com.
Captured request from THIS build (26.2.6.3):
[TO BE FILLED - not yet tested. Method: set API URL to
http://127.0.0.1:8099/v2/translate, run “ncat -lk 8099”, run
Tools > Translate, paste the raw request with the key masked.]
HTTP response from DeepL for the request sent by LibreOffice:
[TO BE FILLED - status code, JSON “message”, X-Trace-ID. Not yet tested.]
SAL log:
[TO BE FILLED - e.g. SAL_LOG=+WARN.linguistic+INFO.linguistic with
SAL_LOG_FILE set. May be empty on a release build; if so, state that and
test with a daily/debug build.]
Hypotheses (NOT verified for 26.2.6.3):
- H1: translate.cxx still authenticates with an auth_key form field and
sends tag_handling as a query parameter, so DeepL returns 403. - H2: the non-200 status is not reported to the user (silent failure).
Suggested fix (if H1 is confirmed):
- Send "Authorization: DeepL-Auth-Key ", move all parameters into the
POST body, and surface HTTP status + DeepL “message” in the UI.
Environment (Help > About LibreOffice):
Version: 26.2.6.3 (X86_64)
Build ID: 8221e31b3ac356a1623c672912a3d2b492f7e3d1
OS: Windows 10 (build 19044)
UI: pl-PL
[Paste the full “Copy version information” block: CPU threads, UI render,
VCL, Locale, Calc line.]
Java: Eclipse Temurin JDK 21.0.12.1 (not believed to be involved; the
feature is implemented in C++ with libcurl)
