Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Routing] Add locale fallback to internationalized routes#10108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletionsrouting.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -210,6 +210,16 @@ should be used during the request. Defining routes this way also eliminated the
need for duplicate registration of routes which minimizes the risk for any bugs
caused by definition inconsistency.

.. tip::

If the application uses full language + territory locales (e.g. ``fr_FR``,
``fr_BE``), you can use the language part only in your routes (e.g. ``fr``).
This prevents having to define multiple paths when you want to use the same
route path for locales that share the same language.

.. versionadded:: 4.2
The feature to fall back on the language part only was introduced in Symfony 4.2.

A common requirement for internationalized applications is to prefix all routes
with a locale. This can be done by defining a different prefix for each locale
(and setting an empty prefix for your default locale if you prefer it):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp