updateLocale static method
Updates locale, invokes locale change callbacks
Implementation
static void updateLocale(Locale locale) {
instance.locale = locale;
instance._onLocaleUpdateCallbacks
.forEach((element) => element.call(locale));
}