localeCode property
String
get
localeCode
The current locale code of the application. Format: languageCode_countryCode For example: en_US, fr_FR, de_DE, ...
Implementation
String get localeCode {
final appInfo = FastAppInfoBloc.instance.currentState;
final localeCode = toIos3166Code(
languageCode,
countryCode: countryCode ?? appInfo.deviceCountryCode,
);
return localeCode ?? kFastSettingsDefaultLanguageCode;
}