Rails locale fallbacks are not working in production env -


i have rails 3.2 application. has 2 locales ko & en. ko default want fallback en if it's not available. fallback works in development env not in production env.

[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 not defined)   **in development console:**  i18n.localt #=> :ko i18n.t("ttt") #=> "ttt" (works fine)   **in production console:**  i18n.locale #=> :ko i18n.t("ttt") #=> "translation missing: ko.ttt" (not working) 

what missing?

thanks.

sam

if comment out config.i18n.fallbacks = true in production / staging environments works expected.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -