yLocale method
Implementation
String yLocale() {
final localization = YConfig.localizations[this];
Locale? key;
final s = YLocaleUtils.appLocale;
final curLocale = (YLocaleUtils.appLocale ?? YLocaleUtils.appLocale_system!).languageCode;
localization?.keys.forEach((key_for) {
if (key_for.languageCode == curLocale) {
key = key_for;
return;
}
});
return localization != null && key != null ? localization[key]! : "(UnLocaled_$this)";
}