static String getLanguage(Language language) { switch (language) { case Language.en: return 'en'; case Language.hi: return 'hi'; default: return 'en'; } }