locale property
String
locale
Implementation
static String get locale => i18n['locale'];
Sets the current locale for name and symbol.
Current supported localese are:
- English (en)
- German (de)
Implementation
static set locale(String value) {
if (translations.containsKey(value)) {
i18n = translations[value] as Map<String, dynamic>;
} else if (value.contains('_')) {
locale = value.split('_').first;
}
}