original_string: public function update(string $projectKey, string $translationId, string $content, array $params = [])
      {
          $params['content'] = $content;
  
          $response = $this->httpPatch(sprintf('/api/v2/projects/%s/translations/%s', $projectKey, $translationId), $params);
  
          if (!$this->hydrator) {
              return $response;
          }
  
          if ($response->getStatusCode() !== 200 && $response->getStatusCode() !== 201) {
              $this->handleErrors($response);
          }
  
          return $this->hydrator->hydrate($response, TranslationUpdated::class);
      }
code: public function update(string $projectKey, string $translationId, string $content, array $params = [])
      {
          $params['content'] = $content;
  
          $response = $this->httpPatch(sprintf('/api/v2/projects/%s/translations/%s', $projectKey, $translationId), $params);
  
          if (!$this->hydrator) {
              return $response;
          }
  
          if ($response->getStatusCode() !== 200 && $response->getStatusCode() !== 201) {
              $this->handleErrors($response);
          }
  
          return $this->hydrator->hydrate($response, TranslationUpdated::class);
      }
code_tokens: public function update ( string $ projectKey , string $ translationId , string $ content , array $ params = [ ] ) { $ params [ 'content' ] = $ content ; $ response = $ this -> httpPatch ( sprintf ( '/api/v2/projects/%s/translations/%s' , $ projectKey , $ translationId ) , $ params ) ; if ( ! $ this -> hydrator ) { return $ response ; } if ( $ response -> getStatusCode ( ) !== 200 && $ response -> getStatusCode ( ) !== 201 ) { $ this -> handleErrors ( $ response ) ; } return $ this -> hydrator -> hydrate ( $ response , TranslationUpdated :: class ) ; }
docstring: Update a translation.
  
  @param string $projectKey
  @param string $translationId
  @param string $content
  @param array  $params
  
  @return TranslationUpdated|ResponseInterface
docstring_tokens: Update a translation .