(domain_name)
return counter.most_common(1)[0][0] if counter else 'en'
A domain does not have a default language, but its apps do. Return
    the language code of the most common default language across apps.
A domain does not have a default language, but its apps do. Return
    the language code of the most common default language across apps.
A domain does not have a default language but its apps do . Return the language code of the most common default language across apps .
def guess_domain_language(domain_name):
    """
    A domain does not have a default language, but its apps do. Return
    the language code of the most common default language across apps.
    """
    domain_obj = Domain.get_by_name(domain_name)
    counter = Counter([app.default_language for app in domain_obj.applications() if not app.is_remote_app()])
    return counter.most_common(1)[0][0] if counter else 'en'
def guess_domain_language ( domain_name ) : domain_obj = Domain . get_by_name ( domain_name ) counter = Counter ( [ app . default_language for app in domain_obj . applications ( ) if not app . is_remote_app ( ) ] ) return counter . most_common ( 1 ) [ 0 ] [ 0 ] if counter else 'en'