shortLocale static method

String shortLocale(
  1. String aLocale
)

Return the short version of a locale name, e.g. 'en_US' => 'en'

Implementation

static String shortLocale(String aLocale) =>
    helpers.languageOnlyLocale(aLocale);