Translate Layouts
translate_layoutsTranslates screenshot-layout text into requested languages while preserving composition and language-specific images. Requires an existing source layout. Re-running a target language re-syncs its design from the source and can replace manual target-language design tweaks. Subject to translation allowances.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layouts | No | Which layout sizes to translate. Defaults to ['mobile', 'tablet']. Include 'desktop' only if the project has a desktop layout. | |
| projectId | No | Alias of generationId (the project id). | |
| variantId | No | Variant to translate. If omitted, uses the active variant. | |
| generationId | No | Project id: the same UUID as projectId from list_projects/get_project (generationId is its legacy name). You may pass projectId instead. The project/generation UUID. | |
| targetLanguages | Yes | Array of target language codes (e.g. ['en', 'ja', 'de']). Use el for Greek (el-GR), he for Hebrew (iw-IL), fil for Filipino, or for Odia, pa for Punjabi. The source language is auto-detected and excluded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| widgetDataJson | No |