translation.sync_spad ​
Injects translations into SPAD build artifacts
Injects reviewed translations into SPAD build artifacts via S3 or ECS.
Input fields: spad_site_uuid, build_ref (optional)
If the SPAD site has no translation project, transitions to SKIPPED.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-translation |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
spad_site_uuid | uuid | Yes | — | SPAD site UUID |
build_ref | string | No | — | Provider/build artifact reference |
trace_ref | string | No | — | Trace reference for request correlation |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
spad_site_uuid | uuid | No | — | — |
build_ref | string | No | — | — |
trace_ref | string | No | — | — |
needs_skip | boolean | No | — | — |
translation_project_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
framework | string | No | — | — |
build_bucket | string | No | — | — |
build_path | string | No | — | — |
languages | list | No | — | — |
translation_data | json | No | — | — |
formatted_files | json | No | — | — |
files_injected | integer | No | — | — |
injection_method | string | No | — | — |
skipped_at | string | No | — | — |
skip_reason | string | 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_translations | — |
fetching | No | No | — | format_for_framework | — |
formatting | No | No | — | inject_into_build | — |
injecting | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
skipped | No | Yes | Yes | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | fetch_translations | fetching | — |
fetching | format_for_framework | formatting | — |
fetching | skip | skipped | — |
formatting | inject_into_build | injecting | — |
injecting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "translation.sync_spad",
"initial_data": {
"spad_site_uuid": "value"
}
}