Skip to content
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

[4.x] Switch locale #9452

Closed
wants to merge 5 commits into from
Closed

[4.x] Switch locale #9452

wants to merge 5 commits into from

Conversation

peimn
Copy link
Contributor

@peimn peimn commented Feb 2, 2024

This PR will switch locale when user switches site if didn't select any default locale in preferences

@duncanmcclean
Copy link
Member

Hey! Are you able to provide more details about what was broken before this fix?

@jasonvarga
Copy link
Member

This is letting the site selector change the translation of the CP.

I'm not really a fan of this approach. If you want the control panel to be in the language you prefer to use, then you should set a preference. I don't think changing to a different site should impact the way you view the entire CP.

Thanks!

@jasonvarga jasonvarga closed this Feb 13, 2024
@peimn
Copy link
Contributor Author

peimn commented Feb 14, 2024

Nothing was broken! But I think when we change site we are going to edit and publish on that site so the cp has to be on the locale and direction that site has...

@peimn
Copy link
Contributor Author

peimn commented Feb 14, 2024

In this PR it checks preferences for any locale set in first then applies locale of site

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

Successfully merging this pull request may close these issues.

None yet

3 participants