Use the pull route to get translations into a build:
HTTP
GET https://api.continuous-translations.com/projects/{id}/pull?language=nl&branch=main
Authorization: Bearer <YOUR_API_KEY>| Parameter | Description |
|---|---|
language | The language code, e.g. nl |
branch | The branch to read, e.g. main |
status | Which translations to include. The CLI asks for approved translations unless you pass --drafts |
The key needs the translations:read scope, see Authentication.
Let the CLI do it #
For most projects you don’t call this route yourself. ct pull calls it for every active language and writes the files in your project’s format:
SH
npx @continuous-translations/cli pullSee Commands for options such as --require-complete 100, and Use the CLI in CI for pipeline examples.
Automate it #
Start a build with a webhook when all keys on a branch reach 100% translation coverage. This is the recommended pattern for continuous deployment.