src/V2/Localization/LocalizationHandler.php
public function onRequest( RequestInterface $request ) {
        $localizedUri = Uri::withQueryValue( $request->getUri(), 'lang', $this->getEndpoint()->getLang() );
        return $request->withUri($localizedUri);
    }
public function onRequest( RequestInterface $request ) {
        $localizedUri = Uri::withQueryValue( $request->getUri(), 'lang', $this->getEndpoint()->getLang() );
        return $request->withUri($localizedUri);
    }
public function onRequest ( RequestInterface $ request ) { $ localizedUri = Uri :: withQueryValue ( $ request -> getUri ( ) , 'lang' , $ this -> getEndpoint ( ) -> getLang ( ) ) ; return $ request -> withUri ( $ localizedUri ) ; }
Adds the `lang` query parameter to the request for localized endpoints.

@param RequestInterface $request

@return \Psr\Http\Message\RequestInterface
Adds the lang query parameter to the request for localized endpoints .