code: def convert_language_code(django_lang):
      
      lang_and_country = django_lang.split('-')
      try:
          return '_'.join((lang_and_country[0], lang_and_country[1].upper()))
      except IndexError:
          return lang_and_country[0]
docs: Converts Django language codes "ll-cc" into ISO codes "ll_CC" or "ll"
  
      :param django_lang: Django language code as ll-cc
      :type django_lang: str
      :return: ISO language code as ll_CC
      :rtype: str