mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 01:11:00 +00:00
Update example code format
This commit is contained in:
parent
db01aeb404
commit
31359064b3
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ const res = await fetch("https://libretranslate.com/translate", {
|
||||||
target: "es"
|
target: "es"
|
||||||
}),
|
}),
|
||||||
headers: { "Content-Type": "application/json" }
|
headers: { "Content-Type": "application/json" }
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(await res.json());
|
console.log(await res.json());
|
||||||
```
|
```
|
||||||
|
|
|
@ -346,7 +346,7 @@ document.addEventListener('DOMContentLoaded', function(){
|
||||||
' target: "' + this.$options.filters.escape(this.targetLang) + '"',
|
' target: "' + this.$options.filters.escape(this.targetLang) + '"',
|
||||||
' }),',
|
' }),',
|
||||||
' headers: { "Content-Type": "application/json" }',
|
' headers: { "Content-Type": "application/json" }',
|
||||||
' });',
|
'});',
|
||||||
'',
|
'',
|
||||||
'console.log(await res.json());'].join("\n");
|
'console.log(await res.json());'].join("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue