services/Generator.php
private function _generateJSFile()
    {
        $this->_loadLanguageItems();

        $data = [];
        foreach ($this->_languageItems as $language_item) {
            $data[md5($language_item->message)] = $language_item->languageTranslate->translation;
        }

        $filename = $this->_basePath . '/' . $this->_languageId . '.js';

        file_put_contents($filename, str_replace('{language_items}', Json::encode($data), $this->_template));
    }
private function _generateJSFile()
    {
        $this->_loadLanguageItems();

        $data = [];
        foreach ($this->_languageItems as $language_item) {
            $data[md5($language_item->message)] = $language_item->languageTranslate->translation;
        }

        $filename = $this->_basePath . '/' . $this->_languageId . '.js';

        file_put_contents($filename, str_replace('{language_items}', Json::encode($data), $this->_template));
    }
private function _generateJSFile ( ) { $ this -> _loadLanguageItems ( ) ; $ data = [ ] ; foreach ( $ this -> _languageItems as $ language_item ) { $ data [ md5 ( $ language_item -> message ) ] = $ language_item -> languageTranslate -> translation ; } $ filename = $ this -> _basePath . '/' . $ this -> _languageId . '.js' ; file_put_contents ( $ filename , str_replace ( '{language_items}' , Json :: encode ( $ data ) , $ this -> _template ) ) ; }
Creating JavaScript language file in current language.
Creating JavaScript language file in current language .