OpenFolia

List translation status

GET
/translations/status

First one TranslationStatus (kind config) per target language for the project labels (#731: the labels in openfolia.yaml; every reader of the ref reads them in every language; filter[manual] keeps them, filter[folder] not; none while no label has text); then one (kind design) per page design with region text and target language (#568; designs carry no audience: every reader of the ref reads them in every language; filter[manual] keeps the manual's design, filter[folder] none), by name; then one (kind manual) per manual and target language the reader reads it in (#656, #731: its title, its groups’ titles and its cover images’ alternative text; filter[manual] keeps that manual's, filter[folder] none), by title; then one per source module (as the reader sees it in the source language) and target language the reader would see a translation in, at ?ref=: up-to-date, outdated (with meta.outdatedBlocks), missing or at-provider. Filtered before paging, so meta.page.total counts only what the reader may see. Ordered by source title, module ID and the configured order of target languages. Source files that cannot be read are left out. 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.

Query Parameters

page[by]?string

What page[size], meta.page.total and the pages count: status (the default), one TranslationStatus each; or row (#689), one row of the module × language matrix each (a module, a page design, a manual or the project labels), with every status the row has on the page, however many languages that is (at most page[size] × the target languages).

Value in"status""row"
filter[lang]?string

Only this target language; one that is not a target language matches nothing.

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

Only the modules this manual includes, also through module references, as the reader reads it, its page design, its own text, and the project labels (its title page shows them); a manual the reader may not see matches nothing.

Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Lengthlength <= 100
filter[folder]?string

Only the modules in a folder of the content browser: <type> (a module type) or <type>/<value> (and a value of the first configured facet). No page design, no manual and no project labels.

Match^[^/]+(?:\/[^/]+)?$
Lengthlength <= 200
filter[state]?string

Only this state: up-to-date, outdated, missing, at-provider.

Value in"up-to-date""outdated""missing""at-provider"
filter[q]?string

Only modules whose source title or ID (page designs whose name or ID, manuals whose source title or ID; the project labels for text in Project labels or config.project, e.g. labels or config) contains this text, case and diacritics aside; 1 to 200 characters after trimming.

Length1 <= length <= 200
filter[kind]?string

Only module rows, only design rows (a page design’s region text, #568), only manual rows (a manual’s own text: its title, its groups’ titles, #731, and its cover images’ alternative text, #656), or only the config row (the project labels in openfolia.yaml, #731).

Value in"module""design""manual""config"
filter[module]?string

Only these source modules, comma-separated (a,b,c), 1 to 200 module IDs (#694): a content list reads the states of the modules on its page, with page[by]=row and a page[size] of at least their number (paged by status, the default, a page holds at most page[size] statuses: one per ID and target language). No page design, no manual and no project labels. An ID that names no source module the reader sees matches nothing, like a module that does not exist.

Lengthlength <= 20200
page[number]?integer

Page to return, from 1. Default: 1.

Range1 <= value
page[size]?integer

Resources per page. Default: 50, at most 200.

Range1 <= value <= 200
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*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/translations/status'
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"      }    }  ],  "meta": {    "page": {      "currentPage": -9007199254740991,      "lastPage": -9007199254740991,      "perPage": -9007199254740991,      "total": -9007199254740991    }  },  "links": {    "self": "string",    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  }}