getLocale static method
Implementation
static Future<String> getLocale() async {
int index = SpUtil.getInt(AppConfig.appLocale)!;
switch (index) {
case 0:
return 'en';
case 1:
return 'de';
case 2:
return 'es';
case 3:
return 'fr';
case 4:
return 'it';
case 5:
return 'ja';
case 6:
return 'ar';
default:
return 'en';
}
}