Browse Source

feat: update i18n

pull/1225/head
natdeanlewissoftwire 2 years ago
parent
commit
16b6913e00
  1. 4
      app/models/validations/sales/sale_information_validations.rb
  2. 4
      config/locales/en.yml

4
app/models/validations/sales/sale_information_validations.rb

@ -11,8 +11,8 @@ module Validations::Sales::SaleInformationValidations
return if record.exdate.blank? || record.hodate.blank?
unless record.exdate > record.hodate
record.errors.add :exdate, I18n.t("validations.sale_information.handover_before_exchange")
record.errors.add :hodate,I18n.t("validations.sale_information.handover_before_exchange")
record.errors.add :exdate, I18n.t("validations.sale_information.handover_exchange.exchange_after_handover")
record.errors.add :hodate,I18n.t("validations.sale_information.handover_exchange.exchange_after_handover")
end
end

4
config/locales/en.yml

@ -417,7 +417,9 @@ en:
property_type_bedsit: "Bedsit bedroom maximum 1"
previous_property_type:
property_type_bedsit: "A bedsit can not have more than 1 bedroom"
handover_before_exchange: "Practical completion or handover date must be before exchange date"
handover_exchange:
handover_before_exchange: "Practical completion or handover date must be before exchange date"
exchange_after_handover: "Exchange date must be after practical completion or handover date"
soft_validations:
net_income:

Loading…
Cancel
Save