Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Merge pull request #2475 from mirumee/815/add-translation-interface
Marcin Gębala9ff882e3b276
diff --cc templates/checkout/index.htmlindex bd42c32bdb,6e14fe4f84..593ec56b83--- a/templates/checkout/index.html+++ b/templates/checkout/index.html@@@ -42,10 -42,10 +42,10 @@@<div class="row"><div class="col-7 cart__line__product"><a class="link--clean" href="{{ line.variant.get_absolute_url }}">- <img class="lazyload lazypreload" data-src="{% get_thumbnail line.variant.product.images.first.image method="crop" size="60x60" %}"- data-srcset="{% get_thumbnail line.variant.product.images.first.image method="crop" size="60x60" %} 1x, {% get_thumbnail line.variant.product.images.first.image method="crop" size="120x120" %} 2x"+ <img class="lazyload lazypreload" data-src="{% get_thumbnail line.variant.product.images.first.image method="crop" size=60 %}"+ data-srcset="{% get_thumbnail line.variant.product.images.first.image method="crop" size=60 %} 1x, {% get_thumbnail line.variant.product.images.first.image method="crop" size=120 %} 2x"alt="">- <p>{{ line.variant.product }}<br><small>{{ line.variant }}</small></p>+ <p>{{ line.variant.product.translated }}<br><small>{{ line.variant.translated }}</small></p></a></div><div class="col-5">diff --cc templates/order/_ordered_items_table.htmlindex 6ef13725dd,148ced4f01..afdfe2bf54--- a/templates/order/_ordered_items_table.html+++ b/templates/order/_ordered_items_table.html@@@ -50,11 -50,11 +50,11 @@@<div class="row"><div class="col-md-8"><a class="link--clean" href="{% if line.variant %}{{ line.variant.get_absolute_url }}{% endif %}">- <img data-src="{% product_first_image line.variant.product size="60x60" method="crop" %}"- data-srcset="{% product_first_image line.variant.product size="60x60" method="crop" %} 1x, {% product_first_image line.variant.product size="120x120" method="crop" %} 2x"+ <img data-src="{% product_first_image line.variant.product size=60 method="crop" %}"+ data-srcset="{% product_first_image line.variant.product size=60 method="crop" %} 1x, {% product_first_image line.variant.product size=120 method="crop" %} 2x"class="float-left lazyload lazypreload"src="{% placeholder size=60 %}">- <span class="order-details__product__description">{{ line.product_name }}</span>+ <span class="order-details__product__description">{{ line.translated_product_name|default:line.product_name }}</span></a></div><div class="col-md-4">diff --cc templates/product/_items.htmlindex 6e828f5793,0037d51ec5..47f66e1e9a--- a/templates/product/_items.html+++ b/templates/product/_items.html@@@ -11,11 -11,11 +11,11 @@@<div class="text-center"><div><img class="img-responsive lazyload lazypreload"- data-src="{% product_first_image product method="crop" size="255x255" %}"- data-srcset="{% product_first_image product method="crop" size="255x255" %} 1x, {% product_first_image product method="crop" size="510x510" %} 2x"+ data-src="{% product_first_image product method="crop" size=255 %}"+ data-srcset="{% product_first_image product method="crop" size=255 %} 1x, {% product_first_image product method="crop" size=510 %} 2x"alt=""src="{% placeholder size=255 %}">- <span class="product-list-item-name" title="{{ product }}">{{ product }}</span>+ <span class="product-list-item-name" title="{{ product.translated }}">{{ product.translated }}</span></div><div class="panel-footer">{% if availability.available %}