本地化月份名称simple_form rails

时间:2012-09-18 14:45:54

标签: ruby-on-rails-3 date datetime internationalization simple-form

我正在使用simple_form,当输入是日期时,我这样做:

<%= f.input :start_date, :label => t('start_date'), :as => :date, :start_year => Date.today.year - 90,
                              :end_year => Date.today.year, :discard_day => true,
                              :order => [:month, :year] %>

但是,月份名称对我的语言环境不正确。如何更改本地化文件以获取正确的名称?

1 个答案:

答案 0 :(得分:2)

您是否可以从https://github.com/svenfuchs/rails-i18n/tree/master/rails/locale获取标准的铁路设置区域设置?