The GOVUKDesignSystemFormBuilder will by default use the following keys within
models_and_forms.en.yml
:
activerecord.attributes.model_name.attribute_name
- form element labelshelpers.hint.model_name.attribute_name
- form element hintshelpers.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