Add use <tunit> instead of <span> for Deepl translation
To avoid getting results like "... bla."</span>" -> "... bla</span>."" from Deepl we need to set set splitting_tags option to an element name (that's not as common as span).
This commit is contained in:
@ -26,6 +26,8 @@ defmodule Outlook.Translators.Deepl do
|
||||
[
|
||||
{"source_lang", options.source_lang},
|
||||
{"target_lang", options.target_lang},
|
||||
{"tag_handling", "xml"},
|
||||
{"splitting_tags", "tunit"},
|
||||
{"file", content, {"form-data", [{:name, "file"}, {:filename, "datei.html"}]}, []}
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user