DeepL translation (Tools > Translate) silently does nothing with a valid DeepL API Free key

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:

  1. Tools > Options > LibreOffice > Advanced: enable “Enable experimental
    features”, restart.
  2. 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)
  3. New Writer document, type “Hello, world!”, select it.
  4. 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:

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)

Please report the issue on Bugzilla

https://bugs.documentfoundation.org/enter_bug.cgi

by IA ? :thinking:

Reposting a Collabora bug here is irrelevant; LibreOffice decided to remove the DeepL integration feature (that they added without consulting the community) for promoting a proprietary service. 172375 – Remove .uno:Translate