changeLocale method

void changeLocale(
  1. Locale newLocale
)

Changes the application's current locale.

This method triggers a change in the locale used by the LocalizationManager, resulting in the loading of new translations appropriate to the newLocale.

newLocale The new locale to which the application should switch.

Implementation

void changeLocale(Locale newLocale) {
  locManager.changeLocale(this, newLocale);
}