我有一个Rails 3.2应用程序。
它有两个本地化语言,韩语和英语。
韩语是默认语言,但如果不可用,我希望它回退到英语。
在开发环境中,回退可以正常工作,但在生产环境中却不能。
[config/application.rb]
config.i18n.default_locale = :ko
config.i18n.fallbacks = [:en]
[config/environments/production.rb]
config.i18n.fallbacks = true
[config/locales/en.yml]
ttt: TTT
[config/locales/ko.yml]
(ttt is not defined)
**In development console:**
I18n.locale #=> :ko
I18n.t("ttt") #=> "TTT" (Works fine)
**In production console:**
I18n.locale #=> :ko
I18n.t("ttt") #=> "translation missing: ko.ttt" (Not working)
我错过了什么?