getCurrentLocale function
Returns the current locale.
Implementation
String getCurrentLocale() {
var locale = Intl.defaultLocale;
return locale ?? 'en';
}
Returns the current locale.
String getCurrentLocale() {
var locale = Intl.defaultLocale;
return locale ?? 'en';
}