def get_primary_language(current_site=None):
 current_site = (current_site or Site.objects.get_current())
 return get_languages()[current_site.id][0]['code']

def get_primary_language ( current_site = None ) : current_site = ( current_site or Site . objects . get_current ( ) ) return get_languages ( ) [ current_site . id ] [ 0 ] [ 'code' ]
fetch the first language of the current site settings .