original_string: 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();
      }
code: 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();
      }
code_tokens: 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 ( ) ; }
docstring: Download a locale.
  
  @param string $projectKey
  @param string $localeId
  @param string $ext
  @param array  $params
  
  @throws Exception
  
  @return string|ResponseInterface
docstring_tokens: Download a locale .