(self, city, country)
return res
Change determinants casing.
Change determinants casing.
Change determinants casing .
def transform_city_name(self, city, country):
        """Change determinants casing."""
        res = super().transform_city_name(city, country)
        if country.code == "ES":
            res = (
                res.replace(" De ", " de ")
                .replace(" Del ", " del ")
                .replace(" La ", " la ")
                .replace(" Las ", " las ")
                .replace(" El ", " el ")
                .replace(" Los ", " los ")
            )
        return res
def transform_city_name ( self , city , country ) : res = super ( ) . transform_city_name ( city , country ) if country . code == "ES" : res = ( res . replace ( " De " , " de " ) . replace ( " Del " , " del " ) . replace ( " La " , " la " ) . replace ( " Las " , " las " ) . replace ( " El " , " el " ) . replace ( " Los " , " los " ) ) return res