Use exiting translation

This commit is contained in:
Luis Ramos
2020-08-06 11:28:48 +01:00
parent 5958c2f68c
commit b2cf414fb8

View File

@@ -6,12 +6,12 @@ module Spree
def options_text_for(image)
if image.viewable.is_a?(Spree::Variant)
if image.viewable.is_master?
Spree.t(:all)
I18n.t(:all)
else
image.viewable.options_text
end
else
Spree.t(:all)
I18n.t(:all)
end
end
end