src/Translator/Traits/LegacyCodeTrait.php
public function setLanguage($language)
    {
        $this->setLocale($language);

        $code = $this->getLanguageCode($language);

        putenv('LC_ALL=' . $code);
        setlocale(LC_ALL, $code);
        setlocale(LC_NUMERIC, 'en_US');

        return $this;
    }
public function setLanguage($language)
    {
        $this->setLocale($language);

        $code = $this->getLanguageCode($language);

        putenv('LC_ALL=' . $code);
        setlocale(LC_ALL, $code);
        setlocale(LC_NUMERIC, 'en_US');

        return $this;
    }
public function setLanguage ( $ language ) { $ this -> setLocale ( $ language ) ; $ code = $ this -> getLanguageCode ( $ language ) ; putenv ( 'LC_ALL=' . $ code ) ; setlocale ( LC_ALL , $ code ) ; setlocale ( LC_NUMERIC , 'en_US' ) ; return $ this ; }
Selects a language to be used when translating

@param string $language
@return $this
Selects a language to be used when translating