mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 17:31:00 +00:00
Update README.md
This commit is contained in:
parent
678c9fb6e2
commit
a63394549b
1 changed files with 3 additions and 3 deletions
|
@ -39,7 +39,7 @@ Response:
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### HTML
|
### HTML (beta)
|
||||||
|
|
||||||
Request:
|
Request:
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ Request:
|
||||||
const res = await fetch("https://libretranslate.com/translate", {
|
const res = await fetch("https://libretranslate.com/translate", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
q: '<a href="#" class="green">Hello!</a>',
|
q: '<p class="green">Hello!</p>',
|
||||||
source: "en",
|
source: "en",
|
||||||
target: "es",
|
target: "es",
|
||||||
format: "html"
|
format: "html"
|
||||||
|
@ -62,7 +62,7 @@ Response:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
"translatedText": "<a href\"#='class=\"green\"'>¡Hola!</a>"
|
"translatedText": "<p class=\"green\">¡Hola!</p>"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue