Rails 3 translations within models in production
问题 I'm trying to translate an app into Japanese and everything was going smoothly until I put it into production. As cache_classes is now true any translation within a model reverts to the default locale. I know I'm probably supposed to target the translations directly in the yml file but I'm not sure how I would do that for the following simplified code: class TimeseriesForecast < ActiveRecord::Base @@field_names = { :location_name => I18n.t('forecast_timeseries.location_name'), :local_date