public function loadJsTranslation($langcode = null)
    {
        $strings = $this->loadTranslation($this->getContextJsFile($langcode));

        $translations = array();
        foreach ($strings as $source => $translation) {
            if (isset($translation[0]) && $translation[0] !== '') {
                $translations[$source] = $translation;
            }
        }

        return $translations;
    }
public function loadJsTranslation($langcode = null)
    {
        $strings = $this->loadTranslation($this->getContextJsFile($langcode));

        $translations = array();
        foreach ($strings as $source => $translation) {
            if (isset($translation[0]) && $translation[0] !== '') {
                $translations[$source] = $translation;
            }
        }

        return $translations;
    }
public function loadJsTranslation ( $ langcode = null ) { $ strings = $ this -> loadTranslation ( $ this -> getContextJsFile ( $ langcode ) ) ; $ translations = array ( ) ; foreach ( $ strings as $ source => $ translation ) { if ( isset ( $ translation [ 0 ] ) && $ translation [ 0 ] !== '' ) { $ translations [ $ source ] = $ translation ; } } return $ translations ; }
Returns an array of JS translations
@param string|null $langcode
@return array
Returns an array of JS translations