locale property

String locale

The current locale for name and symbol.

Current supported localese are:

  • English (en)
  • German (de)

Implementation

static String get locale => i18n['locale'];
void locale=(String value)

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;
  }
}