(cls, item)
return "en"
Return the language in which this row should be rendered.
Return the language in which this row should be rendered.
Return the language in which this row should be rendered .
def _get_language(cls, item):
        """
        Return the language in which this row should be rendered.
        """
        french_domains = (
            "airsmadagascar",
            "abtmali",
            "vectorlink-burkina-faso",
            "vectorlink-benin",
            "vectorlink-madagascar",
            "vectorlink-mali",
        )

        if item.get("domain", None) in french_domains:
            return "fra"
        country = cls._get_val(item, ["location_data", "country"])
        if country in ["Senegal", 'S\xe9n\xe9gal', "Benin", "Mali", "Madagascar"]:
            return "fra"
        elif country in ["mozambique", "Mozambique"]:
            return "por"
        return "en"
def _get_language ( cls , item ) : french_domains = ( "airsmadagascar" , "abtmali" , "vectorlink-burkina-faso" , "vectorlink-benin" , "vectorlink-madagascar" , "vectorlink-mali" , ) if item . get ( "domain" , None ) in french_domains : return "fra" country = cls . _get_val ( item , [ "location_data" , "country" ] ) if country in [ "Senegal" , 'S\xe9n\xe9gal' , "Benin" , "Mali" , "Madagascar" ] : return "fra" elif country in [ "mozambique" , "Mozambique" ] : return "por" return "en"