Skip to main content

HTML translation

Set format: "html" to translate HTML while preserving markup.

How it works

  • Langbly parses your HTML and translates text nodes only
  • Tags/attributes/entities are preserved as-is
  • script, style, and noscript contents are skipped

Example

curl -sS 'https://api.langbly.com/language/translate/v2' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY' \
-d '{
"q": "<p>Hello <strong>world</strong>.</p>",
"target": "nl",
"format": "html"
}'