getSupportedLanguagesAsStringList static method

List<String> getSupportedLanguagesAsStringList()

Retrieves a list of supported languages as a list of string representations.

This can be used to populate a dropdown menu or for other UI components that require a list of supported languages.

Returns a list of string representations of the supported languages.

Implementation

static List<String> getSupportedLanguagesAsStringList() {
  return LangCode.values.map((e) => e.name).toList();
}