Localization
POST /v1/translations
Sets translation content for translatable fields.
Use this API to add new translations or update existing ones as needed.
The request payload has a maximum size of 100 KB.
Request
- The document declares no server URL.
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
x-publisher-tokenstring required
The publisher token
Request body
Example request
{
"dynamicTranslations": [
{
"type": "section",
"externalId": "my-bundle-1",
"field": "description",
"locale": "es-ES",
"value": "Hola!"
}
],
"staticTranslations": [
{
"key": "checkout.pay_button",
"locale": "es-ES",
"value": "Zapłać teraz"
}
]
}Response
Translations retrieved successfully.
Example response
{
"dynamicTranslations": [
{
"type": "section",
"externalId": "my-bundle-1",
"field": "description",
"locale": "es-ES",
"value": "Hola!"
}
],
"staticTranslations": [
{
"key": "checkout.pay_button",
"locale": "es-ES",
"value": "Zapłać teraz"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.