Skip to content

[4.x] Switch locale - #9452

Closed
peimn wants to merge 5 commits into
statamic:4.xfrom
peimn:switch-locale
Closed

[4.x] Switch locale#9452
peimn wants to merge 5 commits into
statamic:4.xfrom
peimn:switch-locale

Conversation

@peimn

@peimnpeimn commented Feb 2, 2024

Copy link
Copy Markdown
Contributor

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

@duncanmcclean

Copy link
Copy Markdown
Member

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

@jasonvarga

Copy link
Copy Markdown
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!

@peimn

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

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

Sign up for freeto 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.

3 participants

@peimn@duncanmcclean@jasonvarga