Skip to main content
This page shows how to use the /v3/languages endpoints for common integration tasks. Examples are written as pseudocode and are resource-agnostic unless otherwise noted. For background on how features and feature dependency types work, see the overview.

Populate source and target language dropdowns

A single call to GET /v3/languages returns all languages for a resource. Filter by usable_as_source and usable_as_target to populate each dropdown separately.

Show formality options only when supported

formality only needs to be supported by the target language. Check the selected target language’s features object — no need to look at the source language.

Check if a glossary can be used for a given language pair

glossary must be supported by both languages.

List target languages that accept glossaries from a given source language

Filter to targets where both the source and target support the glossary feature.

Show writing style options for the Write resource

writing_style is a target-only feature on the write resource. Check the target language’s features object.

Check if style rules are available for a target language

Use resource=style_rules to query which languages support style rules. Style rules are target-language only — check that the target language is listed in the response. The style_rules resource has no additional features, so only the language availability needs to be checked.

Determine feature support programmatically

Use /v3/languages/resources to drive feature checks at runtime — without hardcoding which features need target-only or both-language support into your client.