-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Translation] Clarifying LocaleSwitcher's behavior #20981
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this note is valid for 6.4, can you target 6.4 branch please?
The LocaleSwitcher will apply the locale at a request level | ||
this means that it will be available only for that request. A | ||
redirect, for example, will cancel the LocaleSwitcher's effect. | ||
For a permanent locale switch between requests see https://symfony.com/doc/current/session.html#making-the-locale-sticky-during-a-user-s-session. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The LocaleSwitcher will apply the locale at a request level | |
this means that it will be available only for that request. A | |
redirect, for example, will cancel the LocaleSwitcher's effect. | |
For a permanent locale switch between requests see https://symfony.com/doc/current/session.html#making-the-locale-sticky-during-a-user-s-session. | |
The LocaleSwitcher will apply the locale at a request level. | |
This means that it will be available only for that request. | |
A redirect, for example, will cancel the LocaleSwitcher's effect. | |
For a permanent locale switch between requests see https://symfony.com/doc/current/session.html#making-the-locale-sticky-during-a-user-s-session. |
About the URL, can you follow the RST format for links please? (see https://github.com/symfony/symfony-docs/pull/20981/files#diff-9ee808b36fb9f3ce98827e47f96d7bf1d53c039fed97fb8364087cd629be779cR1095)
Thanks Kévin! We merged this in 6.4 and did the changes proposed by Mathieu (and some other rewords) while merging. |
No description provided.