def get_first_language(self, site_id=None):
        if site_id is None:
            site_id = getattr(settings, 'SITE_ID', None)

        try:
            return self[site_id][0]['code']
        except (KeyError, IndexError):
            # No configuration, always fallback to default language.
            # This is essentially a non-multilingual configuration.
            return self['default']['code']
Return the first language for the current site.
dataset/ETHPy150Open edoburu/django-parler/parler/utils/conf.py/LanguagesSetting.get_first_language