src/Connector/Translations.php
public function getTranslation(
        string $project,
        string $resource,
        string $lang,
        string $mode = ''
    ): ResponseInterface {
        $uri = $this->createUri("/api/2/project/$project/resource/$resource/translation/$lang");

        if (!empty($mode)) {
            $uri = $uri->withQuery("mode=$mode&file");
        }

        return $this->client->sendRequest($this->createRequest('GET', $uri));
    }
public function getTranslation(
        string $project,
        string $resource,
        string $lang,
        string $mode = ''
    ): ResponseInterface {
        $uri = $this->createUri("/api/2/project/$project/resource/$resource/translation/$lang");

        if (!empty($mode)) {
            $uri = $uri->withQuery("mode=$mode&file");
        }

        return $this->client->sendRequest($this->createRequest('GET', $uri));
    }
public function getTranslation ( string $ project , string $ resource , string $ lang , string $ mode = '' ) : ResponseInterface { $ uri = $ this -> createUri ( "/api/2/project/$project/resource/$resource/translation/$lang" ) ; if ( ! empty ( $ mode ) ) { $ uri = $ uri -> withQuery ( "mode=$mode&file" ) ; } return $ this -> client -> sendRequest ( $ this -> createRequest ( 'GET' , $ uri ) ) ; }
Get translations on a specified resource.

@param string $project  The slug for the project to pull from
@param string $resource The slug for the resource to pull from
@param string $lang     The language to return the translation for
@param string $mode     The mode of the downloaded file

@return ResponseInterface
Get translations on a specified resource .