public function setLanguage($code = null)
    {
        if (!isset($code)) {
            $code = $this->config->get('cli_langcode', '');
        }

        $this->langcode = $code;
        $this->translation->set($code, null);

        return $this;
    }
public function setLanguage($code = null)
    {
        if (!isset($code)) {
            $code = $this->config->get('cli_langcode', '');
        }

        $this->langcode = $code;
        $this->translation->set($code, null);

        return $this;
    }
public function setLanguage ( $ code = null ) { if ( ! isset ( $ code ) ) { $ code = $ this -> config -> get ( 'cli_langcode' , '' ) ; } $ this -> langcode = $ code ; $ this -> translation -> set ( $ code , null ) ; return $ this ; }
Sets the current language
@param null|string $code
@return $this
Sets the current language