OpenFolia

Read a translation status

GET
/translations/status/{lang}/{moduleId}

One source module in one target language, with every translatable block’s state in meta.blocks. Not found, exactly like a module that does not exist, when the language is no target language, the module is not there for the reader in the source language, or the reader would not see a translation in that language. 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})*$
moduleId*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/battery-charging'
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"        }      ]    }  }}