public function getResource($slug)
    {
        $resource = new TranslationResource($this->getTransport());

        $resource->setProject($this->getSlug());
        $resource->setSlug($slug);

        $resource->fetchDetails();

        return $resource;
    }
public function getResource($slug)
    {
        $resource = new TranslationResource($this->getTransport());

        $resource->setProject($this->getSlug());
        $resource->setSlug($slug);

        $resource->fetchDetails();

        return $resource;
    }
public function getResource ( $ slug ) { $ resource = new TranslationResource ( $ this -> getTransport ( ) ) ; $ resource -> setProject ( $ this -> getSlug ( ) ) ; $ resource -> setSlug ( $ slug ) ; $ resource -> fetchDetails ( ) ; return $ resource ; }
Retrieve a single resource with a given slug.

@param string $slug The slug of the resource.

@return TranslationResource
Retrieve a single resource with a given slug .