AITranslationTextModelFactory.TransliterableScript Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of TransliterableScript.
public static Azure.AI.Translation.Text.TransliterableScript TransliterableScript (string code = default, 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.LanguageScript> targetLanguageScripts = default);
static member TransliterableScript : string * string * string * Azure.AI.Translation.Text.LanguageDirectionality * seq<Azure.AI.Translation.Text.LanguageScript> -> Azure.AI.Translation.Text.TransliterableScript
Public Shared Function TransliterableScript (Optional code As String = Nothing, Optional name As String = Nothing, Optional nativeName As String = Nothing, Optional directionality As LanguageDirectionality = Azure.AI.Translation.Text.LanguageDirectionality.LeftToRight, Optional targetLanguageScripts As IEnumerable(Of LanguageScript) = Nothing) As TransliterableScript
Parameters
- code
- String
Code identifying the script.
- name
- String
Display name of the script in the locale requested via Accept-Language header.
- nativeName
- String
Display name of the language in the locale native for the language.
- directionality
- LanguageDirectionality
Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages.
- targetLanguageScripts
- IEnumerable<LanguageScript>
List of scripts available to convert text to.
Returns
A new TransliterableScript instance for mocking.
Applies to
Azure SDK for .NET