updateAppLocale static method
Implementation
static void updateAppLocale(Locale? locale) {
if (appLocale == locale) return;
appLocale = locale;
if (locale == null) {
yDelete(YConfig.localizationKey);
} else {
ySave(YConfig.localizationKey, appLocale!.languageCode);
}
YConfig.onLocaleLoad.call(appLocale ?? appLocale_system!);
for (var yPage in yPages) {
if (yPage.mounted && yPage.yIsAlive) yPage.setState(() {});
}
}