TranslationLanguage Class
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.
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 class TranslationLanguage : System.ClientModel.Primitives.IJsonModel<Azure.AI.Translation.Text.TranslationLanguage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Translation.Text.TranslationLanguage>
public class TranslationLanguage
type TranslationLanguage = class
interface IJsonModel<TranslationLanguage>
interface IPersistableModel<TranslationLanguage>
type TranslationLanguage = class
Public Class TranslationLanguage
Implements IJsonModel(Of TranslationLanguage), IPersistableModel(Of TranslationLanguage)
Public Class TranslationLanguage
- Inheritance
-
TranslationLanguage
- Implements
Properties
Dir |
Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. |
Directionality |
Directionality, which is rtl for right-to-left languages or ltr for left-to-right languages. |
Name |
Display name of the language in the locale requested via Accept-Language header. |
NativeName |
Display name of the language in the locale native for this language. |
Explicit Interface Implementations
IJsonModel<TranslationLanguage>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<TranslationLanguage>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<TranslationLanguage>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<TranslationLanguage>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<TranslationLanguage>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |