translation.generate_translations ​
Auto-translates keys from source to target language using AI
Auto-translates keys using Bedrock AI.
Input fields: project_uuid, source_language_uuid, target_language_uuid, namespace_uuids (optional), key_uuids (optional)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-translation |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
project_uuid | uuid | Yes | — | Translation project UUID |
source_language_uuid | uuid | Yes | — | Source language UUID |
target_language_uuid | uuid | Yes | — | Target language UUID |
namespace_uuids | list | No | — | Specific namespace UUIDs to translate (all if omitted) |
key_uuids | list | No | — | Specific key UUIDs to translate (all if omitted) |
trace_ref | string | No | — | Trace reference for request correlation |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
project_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
source_language_uuid | uuid | No | — | — |
target_language_uuid | uuid | No | — | — |
namespace_uuids | list | No | — | — |
key_uuids | list | No | — | — |
trace_ref | string | No | — | — |
source_language_code | string | No | — | — |
target_language_code | string | No | — | — |
keys_to_translate | list | No | — | — |
total_keys | integer | No | — | — |
translated_items | list | No | — | — |
proposal_uuid | uuid | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | fetch_source_values | — |
creating_proposal | No | No | — | complete | — |
fetching | No | No | — | translate_values | — |
translating | No | No | — | create_proposal | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | fetch_source_values | fetching | — |
fetching | translate_values | translating | — |
translating | create_proposal | creating_proposal | — |
creating_proposal | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "translation.generate_translations",
"initial_data": {
"project_uuid": "value",
"source_language_uuid": "value",
"target_language_uuid": "value"
}
}