humancopy/spree-change-locale — Issue #2: Strange behavior
Author: Kagetsuki
Created: 2011-11-21 17:03:46+00:00
State: open

After adding the repository to my Gemfile and bundling I was able to display the page in 'en', but not 'ja' or any other language for that matter (I get the routing 'not found' error page). I set in different combinations:
Spree::Config.set :default_locale => "ja"
I18n.default_locale = 'ja'
I18n.available_locales = ['ja', 'en']
Spree::Config.set :available_locales => ['en','ja']
but whenever I did Spree::Config.set :available_locales => ['en','ja'] webrick would refuse to load with:
...spree_change_locale/i18n_extension.rb:3:in `enabled_locales': undefined method `collect' for "---\n- en\n- ja\n":String...
so I'd have to set it to nil.

I'm not really sure where to go from here, any help would be appreciated.