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

Use right language_locale_key #3044

Merged
merged 1 commit into from
Jan 22, 2019

Conversation

DanielePalombo
Copy link
Contributor

ref #2856

This PR is going to use the right language_locale_key when it is
used in Admin or in Frontend.

This commit is going to use set_user_language_locale_key, in this way
the session's key used will be :locale for Frontend and will be
:admin_locale in Admin because it is overridden here
https://github.com/solidusio/solidus/blob/475d9db5d0291dd4aeddc58ec919988c336729bb/backend/app/controllers/spree/admin/base_controller.rb#L15
In this way the same user could set a different language in Admin and
Frontend.
Copy link
Contributor

@aitbw aitbw left a comment

Choose a reason for hiding this comment

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

Great job @DanielePalombo 💪 thanks a lot for this PR!

Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks Daniele!

@kennyadsl kennyadsl merged commit bf47c4b into solidusio:master Jan 22, 2019
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.

4 participants