AITranslationTextModelFactory.LanguageScript 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 LanguageScript.
public static Azure.AI.Translation.Text.LanguageScript LanguageScript (string code = default, string name = default, string nativeName = default, Azure.AI.Translation.Text.LanguageDirectionality directionality = Azure.AI.Translation.Text.LanguageDirectionality.LeftToRight);
static member LanguageScript : string * string * string * Azure.AI.Translation.Text.LanguageDirectionality -> Azure.AI.Translation.Text.LanguageScript
Public Shared Function LanguageScript (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) As LanguageScript
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.
Returns
A new LanguageScript instance for mocking.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應