You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document the effect of setting locale on a route with locale prefixes
When using localized routes and importing a collection of routes, the imported
routes can be prefixed with a different prefix for each locale.
This makes it easy to have localized routes for /en/about-us and /nl/over-ons
without having to define multiple routes.
This behavior is implemented in the
`Symfony\Component\Routing\Loader\Configurator\Traits\PrefixTrait` by replacing
the original route with a cloned version for each locale prefix.
However, any route which has a default value for the `_locale` parameter will
only be prefixed with the prefix for that locale and will not be cloned for
the other locale prefixes.
0 commit comments