OpenFolia

Read a page design’s translation status

GET
/translations/status/{lang}/designs/{designId}

A page design’s region text (#568) in one target language, with every unit’s state in meta.blocks (<slot>.<block>). Not found when the language is no target language, there is no such design (or it cannot be read), or it has no region text. Needs translation.manage or content.read.draft (in any scope), on top of reading content (content.read); what it lists is limited by the reader’s scope, its languages included.

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

lang*string
Match^[a-zA-Z]{2,3}(?:-[A-Za-z0-9]{2,8})*$
designId*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Lengthlength <= 100

Query Parameters

ref?string

Branch, tag or commit ID to read from. Default: the server's CCMS_DEFAULT_REF.

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

application/vnd.api+json
  1. response
data*
Example Request
curl -X GET 'http://localhost:3000/translations/status/de/designs/product-line'
Example Response
{  "data": {    "type": "TranslationStatus",    "id": "string",    "attributes": {      "kind": "module",      "moduleId": "string",      "designId": "string",      "manualId": "string",      "lang": "string",      "state": "up-to-date"    },    "meta": {      "title": "string",      "totalBlocks": 0,      "outdatedBlocks": 0,      "atProviderBlocks": 0,      "sourceCommit": "string",      "blocks": [        {          "blockId": "string",          "state": "up-to-date"        }      ]    }  }}