diff --git a/src/app/services/http/deep-l.service.ts b/src/app/services/http/deep-l.service.ts index e1ac5cb9b1ea1f869ccd03222246521770484528..640688f59a9baa8c9072cd5dd264b32ac51d76d6 100644 --- a/src/app/services/http/deep-l.service.ts +++ b/src/app/services/http/deep-l.service.ts @@ -148,7 +148,7 @@ export class DeepLService extends BaseHttpService { private makeXMLTranslateRequest(text: string, targetLang: TargetLang, formality: FormalityType): Observable<DeepLResult> { const url = '/deepl/translate'; const tagFormality = DeepLService.supportsFormality(targetLang) && formality !== FormalityType.default ? '&formality=' + formality : ''; - const additional = 'target_lang=' + encodeURIComponent(targetLang) + + const data = 'target_lang=' + encodeURIComponent(targetLang) + '&tag_handling=xml' + tagFormality + '&text=' + encodeURIComponent(text); return this.http.post<DeepLResult>(url, data, httpOptions)