src/Api/Locale.php
public function download(string $projectKey, string $localeId, string $ext, array $params = [])
    {
        $params['file_format'] = $ext;

        $response = $this->httpGet(sprintf('/api/v2/projects/%s/locales/%s/download', $projectKey, $localeId), $params);

        if (!$this->hydrator) {
            return $response;
        }

        if ($response->getStatusCode() !== 200) {
            $this->handleErrors($response);
        }

        return (string) $response->getBody();
    }
public function download(string $projectKey, string $localeId, string $ext, array $params = [])
    {
        $params['file_format'] = $ext;

        $response = $this->httpGet(sprintf('/api/v2/projects/%s/locales/%s/download', $projectKey, $localeId), $params);

        if (!$this->hydrator) {
            return $response;
        }

        if ($response->getStatusCode() !== 200) {
            $this->handleErrors($response);
        }

        return (string) $response->getBody();
    }
public function download ( string $ projectKey , string $ localeId , string $ ext , array $ params = [ ] ) { $ params [ 'file_format' ] = $ ext ; $ response = $ this -> httpGet ( sprintf ( '/api/v2/projects/%s/locales/%s/download' , $ projectKey , $ localeId ) , $ params ) ; if ( ! $ this -> hydrator ) { return $ response ; } if ( $ response -> getStatusCode ( ) !== 200 ) { $ this -> handleErrors ( $ response ) ; } return ( string ) $ response -> getBody ( ) ; }
Download a locale.

@param string $projectKey
@param string $localeId
@param string $ext
@param array  $params

@throws Exception

@return string|ResponseInterface
Download a locale .