getCurrentLocale static method

String getCurrentLocale()

Accessor for the current locale. This should always == the default locale, unless for some reason this gets called inside a message that resets the locale.

Implementation

static String getCurrentLocale() {
  return defaultLocale ??= systemLocale;
}