-
Notifications
You must be signed in to change notification settings - Fork 0
Translations
Some resources in the API can be translated to various languages. Currently supported languages are English (en
) and German (de
)
Resources that are documented to be translatable have another nested REST endpoint /translate
on their detail route. So for example an organizer with the ID cku5dqtqj00001lgl4w8ga9z6
has the endpoint /v1/organizer/cku5dqtqj00001lgl4w8ga9z6/translate
available for POST
requests.
By sending requests to this endpoint an existing translation can either be updated or a new one can be created.
To stay with the example to add an English translation to this organizer you send the following request body to the described route:
{
"attributes": {
"description": "This organizer also speaks perfect English!",
"language": "en"
}
}
This would return the parent object (in this case the organizer with the ID cku5dqtqj00001lgl4w8ga9z6
) together with al its translations.