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

Different locales for front-end and back-end #3915

Closed
leemour opened this issue Oct 26, 2013 · 2 comments
Closed

Different locales for front-end and back-end #3915

leemour opened this issue Oct 26, 2013 · 2 comments

Comments

@leemour
Copy link
Contributor

leemour commented Oct 26, 2013

How can I set different locales for front-end and back-end? Adding this to /config/initializers/spree.rb or /app/controllers/application_controller.rb has no effect:

Spree::Frontend::Config[:locale] = :en
Spree::Backend::Config[:locale] = :ru

What am I doing wrong or where do I put the code?

@radar
Copy link
Contributor

radar commented Oct 28, 2013

Setting it in config/initializers/spree.rb should work... What version of Spree is this? Can you show us your Gemfile please?

@radar
Copy link
Contributor

radar commented Oct 28, 2013

I was able to reproduce this bug within Spree today. The issue was that the set_user_language method was being overridden in spree_i18n and that override was not acknowledging the config_locale method at all.

I have submitted a patch for this to the master, 2-1-stable and 2-0-stable branches of Spree now.

radar added a commit to spree-contrib/spree_i18n that referenced this issue Oct 28, 2013
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