src/Providers/ResponsiveVoiceProvider.php
public function withLanguage(string $language): self
    {
        $provider = clone $this;

        $provider->language = $this->getLanguage($language);

        return $provider;
    }
public function withLanguage(string $language): self
    {
        $provider = clone $this;

        $provider->language = $this->getLanguage($language);

        return $provider;
    }
public function withLanguage ( string $ language ) : self { $ provider = clone $ this ; $ provider -> language = $ this -> getLanguage ( $ language ) ; return $ provider ; }
Set the language to use.

@param string $language The language to use (eg 'en')

@return self
Set the language to use .