setLocale static method
Sets locale Returns the locale which has been set.
Implementation
static AppLocale setLocale(AppLocale locale) {
_currLocale = locale;
_t = _currLocale.translations;
// force rebuild if TranslationProvider is used
_translationProviderKey.currentState?.setLocale(_currLocale);
return _currLocale;
}