static Iterable<Locale> parseLocales(Iterable? values) { if (values == null || values.isEmpty) return []; final locales = values.map(parseLocale).whereType<Locale>(); return locales; }