Skip to content

[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

Merged
merged 1 commit into from
May 21, 2025

Conversation

ktherage
Copy link
Contributor

No description provided.

Copy link
Member

@welcoMattic welcoMattic left a 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?

Comment on lines +1109 to +1118
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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)

@javiereguiluz javiereguiluz added this to the 6.4 milestone May 21, 2025
@carsonbot carsonbot changed the title Clarifying LocaleSwitcher's behavior [Translation] Clarifying LocaleSwitcher's behavior May 21, 2025
@javiereguiluz javiereguiluz changed the base branch from 7.2 to 6.4 May 21, 2025 08:03
@javiereguiluz javiereguiluz requested a review from xabbuh as a code owner May 21, 2025 08:03
@javiereguiluz javiereguiluz merged commit 99b3c4f into symfony:6.4 May 21, 2025
3 checks passed
@javiereguiluz
Copy link
Member

Thanks Kévin!

We merged this in 6.4 and did the changes proposed by Mathieu (and some other rewords) while merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants