public class Language
extends com.ibm.cloud.sdk.core.service.model.GenericModel
| Constructor and Description | 
|---|
Language()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getCountryCode()
Gets the countryCode. 
 | 
String | 
getDirection()
Gets the direction. 
 | 
String | 
getLanguage()
Gets the language. 
 | 
String | 
getLanguageName()
Gets the languageName. 
 | 
String | 
getNativeLanguageName()
Gets the nativeLanguageName. 
 | 
Boolean | 
isIdentifiable()
Gets the identifiable. 
 | 
Boolean | 
isSupportedAsSource()
Gets the supportedAsSource. 
 | 
Boolean | 
isSupportedAsTarget()
Gets the supportedAsTarget. 
 | 
Boolean | 
isWordsSeparated()
Gets the wordsSeparated. 
 | 
public String getLanguage()
The language code for the language (for example, `af`).
public String getLanguageName()
The name of the language in English (for example, `Afrikaans`).
public String getNativeLanguageName()
The native name of the language (for example, `Afrikaans`).
public String getCountryCode()
The country code for the language (for example, `ZA` for South Africa).
public Boolean isWordsSeparated()
Indicates whether words of the language are separated by whitespace: `true` if the words are separated; `false` otherwise.
public String getDirection()
Indicates the direction of the language: `right_to_left` or `left_to_right`.
public Boolean isSupportedAsSource()
Indicates whether the language can be used as the source for translation: `true` if the language can be used as the source; `false` otherwise.
public Boolean isSupportedAsTarget()
Indicates whether the language can be used as the target for translation: `true` if the language can be used as the target; `false` otherwise.
public Boolean isIdentifiable()
Indicates whether the language supports automatic detection: `true` if the language can be detected automatically; `false` otherwise.
Copyright © 2021 IBM Cloud. All rights reserved.