Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题是我无法在 heroku 上更改我的狂欢应用程序的语言。我改变了
config.i18n.default_locale = :'de'
在我的本地机器上它可以工作!但不是当我把它推到heroku时。有没有人找到解决这个问题的方法?谢谢
你完成初始化部分了吗?(配置/初始化程序/whatever.rb)
if Spree::Config.instance Spree::Config.set(:allow_locale_switching => false) Spree::Config.set(:default_locale => :de) end