mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-06 17:02:54 +02:00
HTML text type
This commit is contained in:
@@ -56,7 +56,7 @@ export class Translations {
|
||||
const body = JSON.stringify(text.map((t) => ({ Text: t })));
|
||||
|
||||
const response = await fetch(
|
||||
`https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=${target}&from=${source}`,
|
||||
`https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=${target}&from=${source}&textType=html`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user