getLanguageNativeName static method

String getLanguageNativeName(
  1. Language language
)

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:

Implementation

static String getLanguageNativeName(final Language language) {
  final OperationResult resultString = staticMethod(
    'TTSLocalization',
    'getLanguageNativeName',
    args: language,
  );

  return resultString['result'];
}