Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 656 Bytes

File metadata and controls

17 lines (11 loc) · 656 Bytes

Internationalisation (I18n)

The GOVUKDesignSystemFormBuilder will by default use the following keys within models_and_forms.en.yml:

  • activerecord.attributes.model_name.attribute_name - form element labels
  • helpers.hint.model_name.attribute_name - form element hints
  • helpers.fieldset.model_name.attribute_name - form element legends

The standard validation error messages are defined in generic_validation_errors.en.yml, with the overrides in the models_and_forms.en.yml which allows you to specify errors messages for a particular attribute, under this key:

  • activerecord.errors.models.model_name.attributes.attribute_name.error