TransliterationLanguage Class
- java.
lang. Object - com.
azure. ai. translation. text. models. TransliterationLanguage
- com.
Implements
public final class TransliterationLanguage
implements JsonSerializable<TransliterationLanguage>
The value of the transliteration 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 converted from one script to another script.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Transliteration |
fromJson(JsonReader jsonReader)
Reads an instance of Transliteration |
| String |
getName()
Get the name property: Display name of the language in the locale requested via Accept-Language header. |
| String |
getNativeName()
Get the native |
|
List<Transliterable |
getScripts()
Get the scripts property: List of scripts to convert from. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static TransliterationLanguage fromJson(JsonReader jsonReader)
Reads an instance of TransliterationLanguage from the JsonReader.
Parameters:
Returns:
Throws:
getName
public String getName()
Get the name property: Display name of the language in the locale requested via Accept-Language header.
Returns:
getNativeName
public String getNativeName()
Get the nativeName property: Display name of the language in the locale native for this language.
Returns:
getScripts
public List<TransliterableScript> getScripts()
Get the scripts property: List of scripts to convert from.
Returns: