Skip to content
On this page

Custom Translations

The Translations Object

id uuid
Primary key of the translations

key string
The translation key.

language string
The language of the translation.

value string
The translation value.

json
{
	"data": {
		"id": "c4346aa4-81a8-4885-b3a8-f647e4f6f769",
		"key": "Test",
		"language": "en-US",
		"value": "Test"
	}
}
{
	"data": {
		"id": "c4346aa4-81a8-4885-b3a8-f647e4f6f769",
		"key": "Test",
		"language": "en-US",
		"value": "Test"
	}
}

List Translations

List all translations that exist in Directus.

Request

API

Query Parameters

Supports all global query parameters.

Response

An array of up to limit translation objects. If no items are available, data will be an empty array.

Example

API

Retrieve a Translation

List an existing translation by primary key.

Request

API

Query Parameters

Supports all global query parameters.

Response

Returns the requested translation object.

Example

API

Create a Translation

Create a new translation.

Request

API

Query Parameters

Supports all global query parameters.

Request Body

A partial translation object.

Response

Returns the translation object for the created translation.

Example

API

Create Multiple Translations

Create multiple new translation.

Request

API

Query Parameters

Supports all global query parameters.

Request Body

An array of partial translation object.

Response

Returns the translation object for the created translation.

Example

API

Update a Translation

Update an existing translation.

Request

API

Query Parameters

Supports all global query parameters.

Request Body

A partial translation object.

Response

Returns the translation object for the updated translation.

Example

API

Update Multiple Translations

Update multiple existing translations.

Request

API

Query Parameters

Supports all global query parameters.

Request Body

keys Required
Array of primary keys of the translations you'd like to update.

data Required
Any of translation object's properties.

Response

Returns the translation objects for the updated translations.

Example

API

Delete a Translation

Delete an existing translation.

Request

API

Response

Empty body.

Example

API

Delete Multiple Translations

Delete multiple existing translations.

Request

API

Request Body

An array of translations primary keys

Response

Empty body.

Example

API