Theme

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

ParameterTypeNote
translation_request[name]stringThe name of the request

Description

Returns the translation request object with the created translations.

{
    "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_code": "en"
                }
            }
        ]
    }
}

Returns an error if there is nothing to translate.

Example

1curl https://localize.cirro.io/api/v2/continuous_projects/UID/translation_requests \
2  -H "Authorization: jwt <JWT_ACCESS_TOKEN>" \
3  --form 'translation_request[name]="-insert-name-here-"'
Previous
Export all files