Dela via


AITranslationTextModelFactory.SourceDictionaryLanguage Method

Definition

Initializes a new instance of SourceDictionaryLanguage.

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

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.

translations
IEnumerable<TargetDictionaryLanguage>

List of languages with alterative translations and examples for the query expressed in the source language.

Returns

A new SourceDictionaryLanguage instance for mocking.

Applies to