getCurrentLocale function

String getCurrentLocale()

Returns the current locale.

Implementation

String getCurrentLocale() {
  var locale = Intl.defaultLocale;
  return locale ?? 'en';
}