original_string: public function indexLocale(string $projectKey, string $localeId, array $params = [])
      {
          if (isset($params['tags'])) {
              $params['q'] = 'tags:'.$params['tags'];
              unset($params['tags']);
          }
  
          $response = $this->httpGet(sprintf('/api/v2/projects/%s/locales/%s/translations', $projectKey, $localeId), $params);
  
          if (!$this->hydrator) {
              return $response;
          }
  
          if ($response->getStatusCode() !== 200 && $response->getStatusCode() !== 201) {
              $this->handleErrors($response);
          }
  
          return $this->hydrator->hydrate($response, Index::class);
      }
code: public function indexLocale(string $projectKey, string $localeId, array $params = [])
      {
          if (isset($params['tags'])) {
              $params['q'] = 'tags:'.$params['tags'];
              unset($params['tags']);
          }
  
          $response = $this->httpGet(sprintf('/api/v2/projects/%s/locales/%s/translations', $projectKey, $localeId), $params);
  
          if (!$this->hydrator) {
              return $response;
          }
  
          if ($response->getStatusCode() !== 200 && $response->getStatusCode() !== 201) {
              $this->handleErrors($response);
          }
  
          return $this->hydrator->hydrate($response, Index::class);
      }
code_tokens: public function indexLocale ( string $ projectKey , string $ localeId , array $ params = [ ] ) { if ( isset ( $ params [ 'tags' ] ) ) { $ params [ 'q' ] = 'tags:' . $ params [ 'tags' ] ; unset ( $ params [ 'tags' ] ) ; } $ response = $ this -> httpGet ( sprintf ( '/api/v2/projects/%s/locales/%s/translations' , $ projectKey , $ localeId ) , $ params ) ; if ( ! $ this -> hydrator ) { return $ response ; } if ( $ response -> getStatusCode ( ) !== 200 && $ response -> getStatusCode ( ) !== 201 ) { $ this -> handleErrors ( $ response ) ; } return $ this -> hydrator -> hydrate ( $ response , Index :: class ) ; }
docstring: Index a locale.
  
  @param string $projectKey
  @param string $localeId
  @param array  $params
  
  @return Index|ResponseInterface
docstring_tokens: Index a locale .