GET /v1/projects/me →
default_language, target_languages).
Hosted pages
translate_site (hosted connector) adds languages to published pages. They
are served at /<lang>/… with hreflang tags and a language switcher.
- Default, free: call it without translations to get the texts, let your
assistant translate them, then call again with
translations={ "hr": { "home.h1.ab12cd34": "…" } }andconfirm: true. mode: "auto": Neural Draft translates (10 credits per language).
Deployed sites and JS apps
Set values per language on the same keys:update_site_text takes a language.
The server serves the default language. For other languages, nd.js fills the
marked blocks in the page’s language, taken from <body data-nd-lang="hr"> or
<html lang="hr">, falling back to the default when a value is missing.
Machine translation by Neural Draft
POST /v1/content/{key}/translate with {"target_langs": ["de","fr"]} returns
a job. Blog posts:
POST /v1/blog-posts/{id}/translate with {"target_languages": ["de"]}.
Both cost 10 credits per language. Translating with your own assistant and
writing the result is free.
Blocks and switcher
<nd-language-switcher>lists the site’s languages.nd.jsblocks (nd-form,nd-booking,nd-blog-feed…) use the page language for their own labels.GET /v1/content?lang=hrandGET /v1/content/bulk?keys=a,b&lang=hrread values for a headless site.