Continuous Projects
Translate missing strings
POST
https://localize.cirro.io/api/v2/continuous_projects/:uid/translation_requests
Calling this endpoint will create a translation request for all missing strings in the continuous project and will add a payment charge to your account. More details in the History
tab of your web interface of your continuous project.
Parameters
Parameter | Type | Note | |
---|---|---|---|
uid | required | string | the Project UID from Setup tab in the web interface |
translation_request[name] | optional | string | the name of the request |
Result
Returns the translation request object with the translation tasks created
{
"translation_request": {
"name": "-your-requested-name-",
"translation_request_tasks": [
{
"translation_task": {
"uid": 123,
"status": "in_progress",
"content_format": "json",
"context": {
"id": 321,
"description": {
"id": 321,
"name": "description",
"body": "",
"record_type": "Context",
"record_id": 321,
"created_at": "2023-12-07T14:50:11.864Z",
"updated_at": "2023-12-07T14:50:11.864Z"
},
"attachments": null
}
},
"target_file": {
"key": "en.yml",
"target_language": "en"
}
}
]
}
}
or an error if there is nothing to be translated
Example
1curl https://localize.cirro.io/api/v2/continuous_projects/UID/translation_requests \
2 -H "Authorization: jwt <JWT_ACCESS_TOKEN>" \
3 -H 'Content-Type: application/json'
4 --form 'translation_request[name]="-insert-name-here-"'