public function getLang()
    {
        if (is_cookie('lang')) {
            $language = (array_key_exists(get_cookie('lang'), $this->_languages)) ? get_cookie('lang') : __config()->config->language;
        } else {
            $language = __config()->config->language;
        }

        return $language;
    }
public function getLang()
    {
        if (is_cookie('lang')) {
            $language = (array_key_exists(get_cookie('lang'), $this->_languages)) ? get_cookie('lang') : __config()->config->language;
        } else {
            $language = __config()->config->language;
        }

        return $language;
    }
public function getLang ( ) { if ( is_cookie ( 'lang' ) ) { $ language = ( array_key_exists ( get_cookie ( 'lang' ) , $ this -> _languages ) ) ? get_cookie ( 'lang' ) : __config ( ) -> config -> language ; } else { $ language = __config ( ) -> config -> language ; } return $ language ; }
Get the current language.

@since 1.0.0

@return string
Get the current language .