ruby on rails - simple_form month translation -


i dealing rails 4 application using simple_form. want display app in spanish did i18n.locale = :es. created labels simple_form in simple_form.es.yml , works right except month dropdown in birthday field (date attribute). screen:

enter image description here

as can see in image, labels working right, select field kindly tries 'translation missing'. don't know add translation strings. please help!

i searched in simple_form documentation , couple of other posts in found nothing. newbie in translation apis.

code behind just:

<%= f.input :birthday, as: :date, start_year: date.today.year,      end_year: date.today.year - 120, order: [:day, :month, :year] %> 

you must have locale configured in simple-form.[locale].yaml

useful links:

https://github.com/plataformatec/simple_form/issues/695#issuecomment-10495237

https://github.com/rails/rails/blob/v3.2.8/activesupport/lib/active_support/locale/en.yml#l18-l21


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -