getLanguageFromLocale static method

String getLanguageFromLocale(
  1. Locale locale
)

Return the lowercase language-code of the given locale.

Implementation

static String getLanguageFromLocale(Locale locale) {
  _checkLanguageCode(locale);
  return locale.languageCode.toLowerCase().trim();
}