I am upgrading an application a rails application to 2.3.2 and I am finding that I can’t display the default validation error messages for ActiveRecord because I don’t have a translation file for it.
This is the error that is reported:
translation missing: en-US, activerecord, errors, template, header
translation missing: en-US, activerecord, errors, template, body
Email translation missing: en-US, activerecord, errors, models, user, attributes, email, taken
Does anyone know where I can find a default English translation file that would include all the strings that the validations might use?
This happened because my language setting was ‘en-US’ and not ‘en’. There are translation files under activerecord/lib/locale. I copied these translations into a new file en_US.yml.
Then I just added my custom strings after these.