[Routing] Localized Routes (i18n): Add an example for default path#20218
Closed
gbere wants to merge 1 commit intosymfony:6.4from
Closed
[Routing] Localized Routes (i18n): Add an example for default path#20218gbere wants to merge 1 commit intosymfony:6.4from
gbere wants to merge 1 commit intosymfony:6.4from
Conversation
MrYamous
reviewed
Sep 13, 2024
| 'en' => '/about-us', | ||
| 'nl' => '/over-ons' | ||
| 'nl' => '/over-ons', | ||
| '/about-us' // Default path for undefined locales |
Contributor
There was a problem hiding this comment.
Is that available only with attribute ? I think we should keep equivalent examples for attribute/yaml/xml/php if possible
Member
There was a problem hiding this comment.
In YAML it doesn't work. But I added the PHP format too in #21745
Member
|
I tried to merge this but our merging tools shows multiple errors. So, I recreated this in #21745 and we're closing this PR in favor of the new one. Thanks. |
javiereguiluz
added a commit
that referenced
this pull request
Jan 23, 2026
This PR was merged into the 6.4 branch. Discussion ---------- [Routing] Default path for localized routes I tried to merge #20218 but it failed, so let's recreate it here. YAML format is not included because this feature doesn't work (you cannot define an entry without a key or with an empty key). Commits ------- cc25104 [Routing] Default path for localized routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Localized Routes (i18n): Add an example for default path