toLanguageCode method
Implementation
LanguageCode toLanguageCode() {
switch (this) {
case 'arb':
return LanguageCode.arb;
case 'cmn-CN':
return LanguageCode.cmnCn;
case 'cy-GB':
return LanguageCode.cyGb;
case 'da-DK':
return LanguageCode.daDk;
case 'de-DE':
return LanguageCode.deDe;
case 'en-AU':
return LanguageCode.enAu;
case 'en-GB':
return LanguageCode.enGb;
case 'en-GB-WLS':
return LanguageCode.enGbWls;
case 'en-IN':
return LanguageCode.enIn;
case 'en-US':
return LanguageCode.enUs;
case 'es-ES':
return LanguageCode.esEs;
case 'es-MX':
return LanguageCode.esMx;
case 'es-US':
return LanguageCode.esUs;
case 'fr-CA':
return LanguageCode.frCa;
case 'fr-FR':
return LanguageCode.frFr;
case 'is-IS':
return LanguageCode.isIs;
case 'it-IT':
return LanguageCode.itIt;
case 'ja-JP':
return LanguageCode.jaJp;
case 'hi-IN':
return LanguageCode.hiIn;
case 'ko-KR':
return LanguageCode.koKr;
case 'nb-NO':
return LanguageCode.nbNo;
case 'nl-NL':
return LanguageCode.nlNl;
case 'pl-PL':
return LanguageCode.plPl;
case 'pt-BR':
return LanguageCode.ptBr;
case 'pt-PT':
return LanguageCode.ptPt;
case 'ro-RO':
return LanguageCode.roRo;
case 'ru-RU':
return LanguageCode.ruRu;
case 'sv-SE':
return LanguageCode.svSe;
case 'tr-TR':
return LanguageCode.trTr;
}
throw Exception('$this is not known in enum LanguageCode');
}