From dd60b98a6ac77f80106ccdab5ba3a2096a16314b Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 9 Feb 2024 09:19:38 +0000 Subject: [PATCH] Fix translation --- app/services/bulk_upload/lettings/validator.rb | 2 +- app/services/bulk_upload/sales/validator.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/bulk_upload/lettings/validator.rb b/app/services/bulk_upload/lettings/validator.rb index e5e768d29..67d546cd4 100644 --- a/app/services/bulk_upload/lettings/validator.rb +++ b/app/services/bulk_upload/lettings/validator.rb @@ -179,7 +179,7 @@ private def validate_missing_required_headers return if halt_validations? - errors.add :base, I18n.t("bulk_upload.lettings.validator.attributes.base.no_headers", guidance_link: Forms::BulkUploadLettings::Guidance.new(year: bulk_upload.year).view_path) if csv_parser.missing_required_headers? + errors.add :base, I18n.t("activemodel.errors.models.bulk_upload/lettings/validator.attributes.base.no_headers", guidance_link: Forms::BulkUploadLettings::Guidance.new(year: bulk_upload.year).view_path) if csv_parser.missing_required_headers? end def halt_validations! diff --git a/app/services/bulk_upload/sales/validator.rb b/app/services/bulk_upload/sales/validator.rb index 05eb7d2e3..86366416f 100644 --- a/app/services/bulk_upload/sales/validator.rb +++ b/app/services/bulk_upload/sales/validator.rb @@ -163,7 +163,7 @@ private def validate_missing_required_headers return if halt_validations? - errors.add :base, I18n.t("bulk_upload.sales.validator.attributes.base.no_headers", guidance_link: Forms::BulkUploadSales::Guidance.new(year: bulk_upload.year).view_path) if csv_parser.missing_required_headers? + errors.add :base, I18n.t("activemodel.errors.models.bulk_upload/sales/validator.attributes.base.no_headers", guidance_link: Forms::BulkUploadSales::Guidance.new(year: bulk_upload.year).view_path) if csv_parser.missing_required_headers? end def halt_validations!