def essence_error_messages
      messages = []
      essence_errors.each do |content_name, errors|
        errors.each do |error|
          messages << Alchemy.t(
            "#{name}.#{content_name}.#{error}",
            scope: 'content_validations',
            default: [
              "fields.#{content_name}.#{error}".to_sym,
              "errors.#{error}".to_sym
            ],
            field: Content.translated_label_for(content_name, name)
          )
        end
      end
      messages
    end
def essence_error_messages
      messages = []
      essence_errors.each do |content_name, errors|
        errors.each do |error|
          messages << Alchemy.t(
            "#{name}.#{content_name}.#{error}",
            scope: 'content_validations',
            default: [
              "fields.#{content_name}.#{error}".to_sym,
              "errors.#{error}".to_sym
            ],
            field: Content.translated_label_for(content_name, name)
          )
        end
      end
      messages
    end
Essence validation errors

 == Error messages are translated via I18n

 Inside your translation file add translations like:

   alchemy:
     content_validations:
       name_of_the_element:
         name_of_the_content:
           validation_error_type: Error Message

 NOTE: +validation_error_type+ has to be one of:

   * blank
   * taken
   * invalid

 === Example:

   de:
     alchemy:
       content_validations:
         contactform:
           email:
             invalid: 'Die Email hat nicht das richtige Format'


 == Error message translation fallbacks

 In order to not translate every single content for every element
 you can provide default error messages per content name:

 === Example

   en:
     alchemy:
       content_validations:
         fields:
           email:
             invalid: E-Mail has wrong format
             blank: E-Mail can't be blank

 And even further you can provide general field agnostic error messages:

 === Example

   en:
     alchemy:
       content_validations:
         errors:
           invalid: %{field} has wrong format
           blank: %{field} can't be blank