---
title: "Translate dictionary values"
method: POST
path: "/api/v1/translation/dict"
tags: ["Translation"]
---

# Translate dictionary values

`POST /api/v1/translation/dict`

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

## Request body

- TranslateDictDTO — DTO for translating dictionary values.
  - `data` object, required — Dictionary containing values to translate
  - `targetLang` string, required — Target language code (e.g., 'UK' for Ukrainian, 'ES' for Spanish)
  - `sourceLang` string, nullable — Source language code (optional, auto-detected if not provided)
  - `fieldsToTranslate` string[], 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'

## Response `200`

Request completed successfully.

- OkResponse
  - `detail` string

## Other responses

- `400` — The request is invalid.
- `401` — Authentication required.
- `422` — Validation Error

---

[API](https://skmtc.dev/pwapps/apis/curie-api.md) · [All operations](https://skmtc.dev/pwapps/apis/curie-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pwapps/curie-api/revisions/b0af9064dfef/schema)
