iso2Locale property

String iso2Locale

Returns just first 2 signs of locale key.

Implementation

String get iso2Locale => locale.length > 2 ? locale.substring(0, 2) : locale;