OpenFolia

Download a translation job’s XLIFF

GET
/translations/exports/{jobId}/file

The job as XLIFF 2.0 (core): with lang, that language’s document (application/xliff+xml); without, a ZIP with one per language (translation-<jobId>-<lang>.xlf). Always Content-Disposition: attachment. One <file> per module, one <unit> per block sent (its ccms:sourceHash says what it was made from), inline marks as <pc> and <ph> (packages/xliff). Made again on every request from the job’s commit and units, as you may read the content there now: modules outside your scope are left out. The commit opens as released content when it was released when exported; else it needs content.read.draft. A job is there for its exporter, and for whoever holds translation.manage for each of its target languages and content.read for its source and target languages, in roles whose scope restricts nothing but languages (so neither its subject nor its counts tell of content outside their scope); a job exported from a ref that was not released (its ref and commit are drafts) only for holders of content.read.draft, and for anyone but its exporter only where content.read.draft covers those languages in the same way. To anyone else it is not found. Needs translation.manage and content.read.

Authorization

bearer
headerAuthorizationBearer <JWT>

A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.

Path Parameters

jobId*string

The translation job’s ID (a UUID). One that names no job, malformed or not, or a job in a language you do not manage, is 404.

Formatuuid

Query Parameters

lang?string

One language of the job; without it, a ZIP of every one.

Match^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$

Header Parameters

X-Ccms-User?string

Demo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).

Response Body

The XLIFF document, or a ZIP of them.

response?unknown
Example Request
curl -X GET 'http://localhost:3000/translations/exports/497f6eca-6276-4993-bfeb-53cbbbba6f08/file'
Example Response
null