TranslationTextModelFactory.TranslationLanguage Method

Definition

The value of the translation property is a dictionary of (key, value) pairs. Each key is a BCP 47 language tag. A key identifies a language for which text can be translated to or translated from.

public static Azure.AI.Translation.Text.TranslationLanguage TranslationLanguage(string name = default, string nativeName = default, Azure.AI.Translation.Text.LanguageDirectionality directionality = Azure.AI.Translation.Text.LanguageDirectionality.LeftToRight, System.Collections.Generic.IEnumerable<string> models = default);
static member TranslationLanguage : string * string * Azure.AI.Translation.Text.LanguageDirectionality * seq<string> -> Azure.AI.Translation.Text.TranslationLanguage
Public Shared Function TranslationLanguage (Optional name As String = Nothing, Optional nativeName As String = Nothing, Optional directionality As LanguageDirectionality = Azure.AI.Translation.Text.LanguageDirectionality.LeftToRight, Optional models As IEnumerable(Of String) = Nothing) As TranslationLanguage

Parameters

name
String

Display name of the language in the locale requested via Accept-Language header.

nativeName
String

Display name of the language in the locale native for this language.

directionality
LanguageDirectionality

Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.

models
IEnumerable<String>

LLM models supported for translation.

Returns

A new TranslationLanguage instance for mocking.

Applies to