From 1f36648428f935a6b46cc3fbd2f8b1977287652a 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 bcfe32f46..634c94bf1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -139,6 +139,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