Skip to content

Commit 68b01ec

Browse files
authored
feat: set html format for libretranslate translation engine (#724)
to allow to translate html code
1 parent 1b0ffc0 commit 68b01ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/translators/engines/libretranslate.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default class LibreTranslate extends TranslateEngine {
1919
q: options.text,
2020
source: from,
2121
target: to,
22+
format: "html",
2223
}, {
2324
headers: {
2425
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)