protected function _languages()
    {
        if (!empty($this->params['languages'])) {
            $this->_languages = explode(',', $this->params['languages']);

            return;
        }

        $langs = Configure::read('I18n.languages');
        if (empty($langs)) {
            return;
        }

        $this->_languages = [];
        $langs = Hash::normalize($langs);
        foreach ($langs as $key => $value) {
            if (isset($value['locale'])) {
                $this->_languages[] = $value['locale'];
            } else {
                $this->_languages[] = $key;
            }
        }
    }
protected function _languages()
    {
        if (!empty($this->params['languages'])) {
            $this->_languages = explode(',', $this->params['languages']);

            return;
        }

        $langs = Configure::read('I18n.languages');
        if (empty($langs)) {
            return;
        }

        $this->_languages = [];
        $langs = Hash::normalize($langs);
        foreach ($langs as $key => $value) {
            if (isset($value['locale'])) {
                $this->_languages[] = $value['locale'];
            } else {
                $this->_languages[] = $key;
            }
        }
    }
protected function _languages ( ) { if ( ! empty ( $ this -> params [ 'languages' ] ) ) { $ this -> _languages = explode ( ',' , $ this -> params [ 'languages' ] ) ; return ; } $ langs = Configure :: read ( 'I18n.languages' ) ; if ( empty ( $ langs ) ) { return ; } $ this -> _languages = [ ] ; $ langs = Hash :: normalize ( $ langs ) ; foreach ( $ langs as $ key => $ value ) { if ( isset ( $ value [ 'locale' ] ) ) { $ this -> _languages [ ] = $ value [ 'locale' ] ; } else { $ this -> _languages [ ] = $ key ; } } }
Get app languages.

@return void
Get app languages .