From c26f6f6d6c30f8b47bca3f457ca3036214c16edd Mon Sep 17 00:00:00 2001 From: Arthur Campbell Date: Sun, 19 Mar 2023 12:41:11 +0000 Subject: [PATCH] add error messages for new validations --- config/locales/en.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 68e1d72fc..c266f5991 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -144,6 +144,11 @@ en: numeric: within_range: "%{field} must be between %{min} and %{max}" above_min: "%{field} must be at least %{min}" + whole_number: "%{field} must be a whole number" + nearest_ten: "%{field} must be given to the nearest ten" + nearest_penny: "%{field} must be given to the nearest penny" + normal_format: "Use digits only" + date: invalid_date: "Enter a date in the correct format, for example 31 1 2022" outside_collection_window: Enter a date within the 22/23 collection year, which is between 1st April 2022 and 31st March 2023