localeExists method

bool localeExists (dynamic localeName)

Return true if the locale exists, or if it is null. The null case is interpreted to mean that we use the default locale.

Implementation

static bool localeExists(localeName) {
  if (localeName == null) return false;
  return numberFormatSymbols.containsKey(localeName);
}