Start translating a repository
translate_repositoryStart translating a connected repository: the locale files on the branch are translated into the project's target languages and delivered back to the repository, by default as a pull request. Runs in the background; this call returns once the translation is queued. Refused when the organisation is out of credits, when the repository has no locale path patterns (see set_repository_patterns), or when a Workflow handles the branch. The id is connect_repository's id, or the connected repository get_project returns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "translate_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Repository id | |
| branch | No | Branch to translate. Defaults to the primary branch (the first watched). | |
| deliveryMode | No | "pr" (default) opens a pull request; "push" commits to the branch. | pr |
| idempotencyKey | No | Makes the start safe to retry: a repeat with the same key and arguments never starts a second translation. Use a fresh key for every translation you mean to start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | The branch being translated | |
| accepted | Yes |