Translation

Translate dictionary values

Translate string values in a dictionary. Useful for translating structured content like landing page data.

post/api/v1/translation/dict

Request body

dataobject required

Dictionary containing values to translate

targetLangstring required

Target language code (e.g., 'UK' for Ukrainian, 'ES' for Spanish)

sourceLangstring nullable

Source language code (optional, auto-detected if not provided)

fieldsToTranslatestring[] nullable

List of specific field paths to translate (if None, translates all string fields). Use dot notation for nested fields: 'title', 'content.heading', 'items[0].name'

Example request

{
  "data": {
    "buttons": {
      "cancel": "Cancel",
      "submit": "Submit"
    },
    "description": "The best platform for your needs",
    "title": "Welcome to our site"
  },
  "fieldsToTranslate": [
    "title",
    "description"
  ],
  "sourceLang": "EN",
  "targetLang": "UK"
}

Response

Request completed successfully.

detailstring

Changes

No recorded changes to this endpoint across all 1 revision of this API.