translation.export_translations ​
Exports translation values to JSON files
Exports translation values to JSON files and uploads to S3.
Input fields: project_uuid, language_uuids (optional), namespace_uuids (optional), format (optional: nested_json | flat_json | i18next)
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 |
language_uuids | list | No | — | Language UUIDs to export (all if omitted) |
namespace_uuids | list | No | — | Namespace UUIDs to export (all if omitted) |
format | string | No | — | Export format: nested_json |
trace_ref | string | No | — | Trace reference for request correlation |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
project_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
language_uuids | list | No | — | — |
namespace_uuids | list | No | — | — |
format | string | No | — | — |
trace_ref | string | No | — | — |
languages | list | No | — | — |
translation_data | json | No | — | — |
export_files | list | No | — | — |
bucket | string | No | — | — |
s3_urls | list | 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_values | — |
building | No | No | — | upload_to_s3 | — |
fetching | No | No | — | build_json | — |
uploading | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | fetch_values | fetching | — |
fetching | build_json | building | — |
building | upload_to_s3 | uploading | — |
uploading | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "translation.export_translations",
"initial_data": {
"project_uuid": "value"
}
}