Translations languages
Manage the individual language configurations for your docs translation setup.
Enable or disable specific languages, configure default text direction, or adjust advanced translation settings to ensure clarity for your global audience.
The TranslationLanguageSettings object
{
"object": "translation-language-settings",
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
},
"urls": {
"location": "https://example.com"
}
}
The unique id of the organization
The unique id of the translation settings
Identifier of the page results to fetch.
The number of results per page
GET /v1/orgs/{organizationId}/translations/{translationSettingsId}/languages HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"next": {
"page": "text"
},
"count": 1,
"items": [
{
"object": "translation-language-settings",
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
"[Circular Reference]"
]
},
"urls": {
"location": "https://example.com"
}
}
]
}
The unique id of the organization
The unique id of the translation settings
The language of the translation
GET /v1/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "translation-language-settings",
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
},
"urls": {
"location": "https://example.com"
}
}
The unique id of the organization
The unique id of the translation settings
The language of the translation
PUT /v1/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 236
{
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
}
}
{
"object": "translation-language-settings",
"language": "en",
"instructions": {
"object": "document",
"data": {
"schemaVersion": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"nodes": [
{
"object": "block",
"type": "paragraph",
"key": "text",
"nodes": [
"[Circular Reference]"
],
"isVoid": false,
"data": {
"align": "start"
}
}
]
},
"urls": {
"location": "https://example.com"
}
}
The unique id of the organization
The unique id of the translation settings
The language of the translation
DELETE /v1/orgs/{organizationId}/translations/{translationSettingsId}/languages/{translationLanguage} HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Was this helpful?