# Check translations mechanically, for any language

`POST /language/check` · Rivier · language

Check translations mechanically, for any language: written in the language's script, the same placeholders, markup and numbers as the source, and plurals kept. Nothing is kept; numbers and an unchanged string are advisory.

- Scope: language:read
- Mcp: rivier_language_check
- Graphql: Query.languageTextCheck
- Sdk: language.text.check
- Cli: language text check

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "language": {
      "type": "string",
      "minLength": 2,
      "maxLength": 12
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "maxLength": 300
          },
          "source": {
            "type": "string",
            "maxLength": 5000
          },
          "translation": {
            "type": "string",
            "maxLength": 5000
          }
        },
        "required": [
          "source",
          "translation"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "maxItems": 500
    }
  },
  "required": [
    "language",
    "items"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/language/check' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "language": "string",
  "items": [
    {
      "source": "string",
      "translation": "string"
    }
  ]
}'
```
