Skip to content
Closed
6 changes: 6 additions & 0 deletions api-reference/languages/retrieve-languages-by-resource.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
---
openapi: get /v3/languages
title: "Retrieve languages"
description: "Retrieve supported languages and feature availability for a specific DeepL API resource."
---

Returns the languages supported for a given DeepL API resource, along with feature availability per language (such as formality, glossary support, transcription, and writing style).

Use the `resource` query parameter to filter results by API product. Supported values include `translate_text`, `translate_document`, `glossary`, `write`, and `voice`.

This endpoint replaces the deprecated [`GET /v2/languages`](/api-reference/languages/retrieve-supported-languages) endpoint. See the [migration guide](/api-reference/languages/migrate-from-v2-languages) for details.
2 changes: 1 addition & 1 deletion api-reference/translate/request-translation.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
openapi: post /v2/translate
title: "Translate text"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Description not action-oriented for developer learning

The frontmatter description 'Translate one or more text strings into a target language.' is functional but reads as a feature description rather than telling developers what they'll accomplish or learn. Per CLAUDE.md, descriptions should use 'Learn how to X' framing or equivalent.

Suggested fix: Change to: 'Send text to the DeepL API and receive translations in a target language.' This orients the reader toward the action and outcome without being generic.

description: ""
description: "Translate one or more text strings into a target language."
---
23 changes: 18 additions & 5 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
"docs/retrieving-usage-data"
]
},
{
"group": "learning-how-tos",
"pages": [
"docs/learning-how-tos/examples-and-guides/translating-text"
]
},
{
"group": "Going to Production",
"pages": [
Expand Down Expand Up @@ -159,7 +165,6 @@
{
"group": "Translate Text",
"pages": [
"api-reference/translate",
"api-reference/translate/request-translation"
],
"drilldown": false
Expand Down Expand Up @@ -345,8 +350,14 @@
{
"title": "Resources",
"items": [
{ "label": "API Status", "href": "https://api-status.deepl.com" },
{ "label": "DeepL Status", "href": "https://www.deeplstatus.com" }
{
"label": "API Status",
"href": "https://api-status.deepl.com"
},
{
"label": "DeepL Status",
"href": "https://www.deeplstatus.com"
}
]
}
],
Expand All @@ -359,7 +370,9 @@
},
"api": {
"examples": {
"languages": ["curl"],
"languages": [
"curl"
],
"defaults": "required"
},
"playground": {
Expand Down Expand Up @@ -576,4 +589,4 @@
}
}
]
}
}
Loading