Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Translations

Matthias Rohmer edited this page Sep 30, 2021 · 1 revision

Some resources in the API can be translated to various languages. Currently supported languages are English (en) and German (de)

Translate resources

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.

Clone this wiki locally