incorrect I18n.locale
thomasmaas opened this issue · comments
Thomas Maas commented
-v 0.9.9.13
context: 2 language website, 'nl' default, 'en' second language
localhost:3000/en gives me:
Refinery::I18n.current_frontend_locale = en
I18n.locale = nl
result: english menu & page content loaded but dutch strings as defined config/locales/nl.yml loaded.
I believe the def find_or_set_locale method is the culprit but haven't had time to investigate further.
Philip Arndt commented
Make use of Globalize.locale for current_frontend_locale and find_or_set_locale now assigns to ::I18n.locale instead of Thread.current[:globalize_locale] for better consistency and expectation. Closed by 5014709