/v3/languages endpoints for common integration tasks. Examples are written
as pseudocode and are product-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 toGET /v3/languages returns all languages for a product. 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
array — 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 theglossary feature.
Show writing style options for the Write product
writing_style is a target-only feature on the write product. Check the target language’s features array.
Check if style rules are available for a target language
Useproduct=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 product has no additional features, so only
the language availability needs to be checked.
Determine feature support programmatically
Use/v3/languages/products to drive feature checks at runtime — without hardcoding which features need
target-only or both-language support into your client.