setLocale method

void setLocale(
  1. Locale newLocale
)

Implementation

void setLocale(Locale newLocale) {
  _locale = newLocale;
  load(); // Reload the localized strings for the new locale
}