Translate/Method/Languages.php
public function get($target = null)
    {
        $options = ['key' => $this->apiKey];

        if (null !== $target) {
            $this->url = sprintf('%s&target={target}', $this->url);

            $options['target'] = $target;
        }

        return $this->process($options);
    }
public function get($target = null)
    {
        $options = ['key' => $this->apiKey];

        if (null !== $target) {
            $this->url = sprintf('%s&target={target}', $this->url);

            $options['target'] = $target;
        }

        return $this->process($options);
    }
public function get ( $ target = null ) { $ options = [ 'key' => $ this -> apiKey ] ; if ( null !== $ target ) { $ this -> url = sprintf ( '%s&target={target}' , $ this -> url ) ; $ options [ 'target' ] = $ target ; } return $ this -> process ( $ options ) ; }
Retrieves all languages availables with Google Translate API
If a target language is specified, returns languages name translated in target language.

@param string $target A target language to translate languages names

@return string
Retrieves all languages availables with Google Translate API If a target language is specified returns languages name translated in target language .