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

get_locale() used instead of get_user_locale() in admin area #1267

Closed
abuyoyo opened this issue May 14, 2019 · 2 comments
Closed

get_locale() used instead of get_user_locale() in admin area #1267

abuyoyo opened this issue May 14, 2019 · 2 comments

Comments

@abuyoyo
Copy link

abuyoyo commented May 14, 2019

Behavior:

While in the admin area, metabox titles and description appear in site locale's language, while the rest of the admin page is displayed in the user's locale/language.

I've changed l10ni18n - get_locale() -> get_user_locale() and it solved my problem.
But on my setup I'm not using cmb on the front end (which should still use get_locale() ) so obviously that's not the solution.

@jtsternberg
Copy link
Member

Try the develop branch and let me know if it works as expected.

@abuyoyo
Copy link
Author

abuyoyo commented May 15, 2019

Yes it does!
ty

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

No branches or pull requests

2 participants