def released_languages():
 released_language_codes = DarkLangConfig.current().released_languages_list
 default_language_code = settings.LANGUAGE_CODE
 if (default_language_code not in released_language_codes):
  released_language_codes.append(default_language_code)
  released_language_codes.sort()
 return [Language(language_info[0], language_info[1]) for language_info in settings.LANGUAGES if (language_info[0] in released_language_codes)]

def released_languages ( ) : released_language_codes = DarkLangConfig . current ( ) . released_languages_list default_language_code = settings . LANGUAGE_CODE if ( default_language_code not in released_language_codes ) : released_language_codes . append ( default_language_code ) released_language_codes . sort ( ) return [ Language ( language_info [ 0 ] , language_info [ 1 ] ) for language_info in settings . LANGUAGES if ( language_info [ 0 ] in released_language_codes ) ]
retrieve the list of released languages .