codeShortMap constant

UpperCaseIsoMap<NaturalLanguage> const codeShortMap

A tree-shakable constant map containing short language (ISO 639-1) codes and their associated NaturalLanguage objects, for a O(1) access time.

Example usage:

NaturalLanguage.codeShortMap['en ']; // LangEng().

Implementation

static const codeShortMap = UpperCaseIsoMap<NaturalLanguage>(
  naturalLanguageCodeOtherMap,
  exactLength: IsoStandardized.codeShortLength,
);