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

@peimn peimn 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!

@jasonvarga jasonvarga closed this Feb 13, 2024
@peimn

peimn commented Feb 14, 2024

Copy link
Copy Markdown
Contributor Author

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

peimn commented Feb 14, 2024

Copy link
Copy Markdown
Contributor Author

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.

3 participants