Merge pull request #6545 from PauloVilarinho/add-internationalization-to-included_price_validation

adds translation key to the included in price validation
This commit is contained in:
Andy Brett
2021-01-02 14:55:16 -08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -7,7 +7,7 @@ module Spree
return if Zone.default_tax
record.errors.add(:included_in_price, Spree.t(:included_price_validation))
record.errors.add(:included_in_price, Spree.t("errors.messages.included_price_validation"))
end
end
end

View File

@@ -3226,6 +3226,7 @@ See the %{link} to find out more about %{sitename}'s features and to start using
payment_state: "Payment State"
errors:
messages:
included_price_validation: "cannot be selected unless you have set a Default Tax Zone"
blank: "can't be blank"
layouts:
admin: