localeCode property

String get localeCode

Returns a random locale code (MS-LCID).

Example:

Code().localeCode; // "en"

Implementation

String get localeCode {
  final data = IntCodeData.localeCodes;
  return data[Random(seed).integer(max: data.length - 1)];
}