getLanguageNativeName static method
Retrieves the native name of the given language.
The native name is the language's name in that language itself and can be used to present language choices to users in their own language.
Parameters
language: The Language for which to retrieve the native name.
Returns
The native name of the specified language.
Also see:
- Language.name - The generic name of the language.
Implementation
static String getLanguageNativeName(final Language language) {
final OperationResult resultString = staticMethod(
'TTSLocalization',
'getLanguageNativeName',
args: language,
);
return resultString['result'];
}