src/Framework/Routing/Router.php
protected function getLocale($parameters)
    {
        if (isset($parameters['locale'])) {
            return $parameters['locale'];
        }
        if ($this->getContext()->hasParameter('_locale')) {
            return $this->getContext()->getParameter('_locale');
        }
        return $this->defaultLocale;
    }
protected function getLocale($parameters)
    {
        if (isset($parameters['locale'])) {
            return $parameters['locale'];
        }
        if ($this->getContext()->hasParameter('_locale')) {
            return $this->getContext()->getParameter('_locale');
        }
        return $this->defaultLocale;
    }
protected function getLocale ( $ parameters ) { if ( isset ( $ parameters [ 'locale' ] ) ) { return $ parameters [ 'locale' ] ; } if ( $ this -> getContext ( ) -> hasParameter ( '_locale' ) ) { return $ this -> getContext ( ) -> getParameter ( '_locale' ) ; } return $ this -> defaultLocale ; }
Determine the locale to be used with this request

@param array $parameters the parameters determined by the route

@return string
Determine the locale to be used with this request