localeToId function

String localeToId (
  1. Locale locale
)

Implementation

String localeToId(Locale locale) {
  return '${locale.languageCode}_${locale.countryCode}';
}