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);
    }
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);
    }
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 ) ; }
Index a locale.

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

@return Index|ResponseInterface
Index a locale .