src/Framework/Routing/Router.php
protected function generateI18n($name, $locale, $parameters, $referenceType = self::ABSOLUTE_PATH)
    {
        try {
            return $this->generator->generate(
                $this->routeNameInflector->inflect($name, $locale),
                $parameters,
                $referenceType
            );
        } catch (RouteNotFoundException $e) {
            throw new RouteNotFoundException(sprintf('I18nRoute "%s" (%s) does not exist.', $name, $locale));
        }
    }
protected function generateI18n($name, $locale, $parameters, $referenceType = self::ABSOLUTE_PATH)
    {
        try {
            return $this->generator->generate(
                $this->routeNameInflector->inflect($name, $locale),
                $parameters,
                $referenceType
            );
        } catch (RouteNotFoundException $e) {
            throw new RouteNotFoundException(sprintf('I18nRoute "%s" (%s) does not exist.', $name, $locale));
        }
    }
protected function generateI18n ( $ name , $ locale , $ parameters , $ referenceType = self :: ABSOLUTE_PATH ) { try { return $ this -> generator -> generate ( $ this -> routeNameInflector -> inflect ( $ name , $ locale ) , $ parameters , $ referenceType ) ; } catch ( RouteNotFoundException $ e ) { throw new RouteNotFoundException ( sprintf ( 'I18nRoute "%s" (%s) does not exist.' , $ name , $ locale ) ) ; } }
Generates a I18N URL from the given parameter

@param string   $name       The name of the I18N route
@param string   $locale     The locale of the I18N route
@param array    $parameters An array of parameters
@param bool|int $referenceType The type of reference to be generated (one of the constants)

@return string The generated URL

@throws RouteNotFoundException When the route doesn't exists
Generates a I18N URL from the given parameter