Skip to main content

supported_languages

Creates, updates, deletes, gets or lists a supported_languages resource.

Overview

Namesupported_languages
TypeResource
Idazure.ai_translation_text.supported_languages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
modelsarrayLLM models supported.
translationobjectLanguages that support translate API.
transliterationobjectLanguages that support transliteration API.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_supported_languagesselectendpointX-ClientTraceId, scope, Accept-LanguageGets the set of languages currently supported by other operations of the Translator. Gets the set of languages currently supported by other operations of the Translator.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client Endpoint parameter. (default: )
Accept-LanguagestringThe language to use for user interface strings. Some of the fields in the response are names of languages or names of regions. Use this parameter to define the language in which these names are returned. The language is specified by providing a well-formed BCP 47 language tag. For instance, use the value fr to request names in French or use the value zh-Hant to request names in Chinese Traditional. Names are provided in the English language when a target language is not specified or when localization is not available. Default value is None.
X-ClientTraceIdstringA client-generated GUID to uniquely identify the request. Default value is None.
scopestringA comma-separated list of names defining the group of languages to return. Allowed group names are: translation, transliteration and dictionary. If no scope is given, then all groups are returned, which is equivalent to passing scope=translation,transliteration,dictionary. To decide which set of supported languages is appropriate for your scenario, see the description of the response object <#response-body>_. Default value is None.

SELECT examples

Gets the set of languages currently supported by other operations of the Translator. Gets the set of languages currently supported by other operations of the Translator.

SELECT
models,
translation,
transliteration
FROM azure.ai_translation_text.supported_languages
WHERE endpoint = '{{ endpoint }}' -- required
AND X-ClientTraceId = '{{ X-ClientTraceId }}'
AND scope = '{{ scope }}'
AND Accept-Language = '{{ Accept-Language }}'
;