parseLanguageCodeFromEnum static method

String parseLanguageCodeFromEnum(
  1. LanguageCodes code
)

Implementation

static String parseLanguageCodeFromEnum(LanguageCodes code) {
  switch (code) {
    case LanguageCodes.en:
      return 'en';
    case LanguageCodes.es:
      return 'es';
    case LanguageCodes.es_la:
      return 'es-la';
    case LanguageCodes.ja_ro:
      return 'ja-ro';
    case LanguageCodes.ko_ro:
      return 'ko-ro';
    case LanguageCodes.pt_br:
      return 'pt-br';
    case LanguageCodes.zh:
      return 'zh';
    case LanguageCodes.zh_hk:
      return 'zh-hk';
    case LanguageCodes.zh_ro:
      return 'zh-ro';
  }
}