Commit 0b659d50 by halweg

fix : js translate

parent c7cc5664
......@@ -691,9 +691,8 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<script type="text/javascript">
require([
'jquery','ko'
], function ($) {
'jquery','ko', 'mage/translate'
], function ($, ko) {
$(".joshine-review-add-btn").on('click',function () {
$(".block.review-add").removeClass('joshine-hidden');
});
......@@ -1144,7 +1143,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
let review = findReviewById(shouldReviewId);
$(".review-box-title").html(review.title);
let fits_text = fitsTranslate(review.size_fits);
$(".review-box-size").html("Size Fits:"+ fits_text);
$(".review-box-size").html($.mage.__("Size Fits")+ ": " + fits_text);
$(".review-box-content").html(review.detail);
$("#review-box-id").val(review.review_id);
}
......
......@@ -427,7 +427,7 @@ define([
var tem_size = '';
if (item.label.toLowerCase() == "size"){
tem_size = "<div id=\"product-intro__freeshipping-more-3\" >" +
"<a href=\"javascript:void(0);\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.5 8.5V15.5H5.31045V13.75C5.31045 13.3358 5.64623 13 6.06045 13C6.47466 13 6.81045 13.3358 6.81045 13.75V15.5H9.31045V11.75C9.31045 11.3358 9.64623 11 10.0604 11C10.4747 11 10.8104 11.3358 10.8104 11.75V15.5H13.3104V13.75C13.3104 13.3358 13.6462 13 14.0604 13C14.4747 13 14.8104 13.3358 14.8104 13.75V15.5H17.3104V11.75C17.3104 11.3358 17.6462 11 18.0604 11C18.4747 11 18.8104 11.3358 18.8104 11.75V15.5H20.5V8.5H3.5ZM14.0604 17H18.0604H21C21.5523 17 22 16.5523 22 16V8C22 7.44772 21.5523 7 21 7H3C2.44772 7 2 7.44772 2 8V16C2 16.5523 2.44772 17 3 17H6.06045H10.0604H14.0604Z\" fill=\"#5D626A\"></path></svg> Size Guide</a></div>";
"<a href=\"javascript:void(0);\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3.5 8.5V15.5H5.31045V13.75C5.31045 13.3358 5.64623 13 6.06045 13C6.47466 13 6.81045 13.3358 6.81045 13.75V15.5H9.31045V11.75C9.31045 11.3358 9.64623 11 10.0604 11C10.4747 11 10.8104 11.3358 10.8104 11.75V15.5H13.3104V13.75C13.3104 13.3358 13.6462 13 14.0604 13C14.4747 13 14.8104 13.3358 14.8104 13.75V15.5H17.3104V11.75C17.3104 11.3358 17.6462 11 18.0604 11C18.4747 11 18.8104 11.3358 18.8104 11.75V15.5H20.5V8.5H3.5ZM14.0604 17H18.0604H21C21.5523 17 22 16.5523 22 16V8C22 7.44772 21.5523 7 21 7H3C2.44772 7 2 7.44772 2 8V16C2 16.5523 2.44772 17 3 17H6.06045H10.0604H14.0604Z\" fill=\"#5D626A\"></path></svg> "+$.mage.__('Size Guide')+"</a></div>";
label += tem_size;
label += '<span id="' + controlLabelId + '" class="' + classes.attributeLabelClass + '">' +
$('<i></i>').text(item.label).html() +
......@@ -450,7 +450,7 @@ define([
}
if (item.label.toLowerCase() == "size") {
// Create new control
var sizeContent = '<div class="swatch-attribute-selected-option-size-content" ><div style="font-size:.32rem;color:#999999;">Product Size Describe</div>'+'<span style="color:#0a0a0a;" class="'+classes.attributeSelectedOptionLabelClass + '"></span></div>';
var sizeContent = '<div class="swatch-attribute-selected-option-size-content" ><div style="font-size:.32rem;color:#999999;">'+$.mage.__("Product Size Describe")+ '</div>'+'<span style="color:#0a0a0a;" class="'+classes.attributeSelectedOptionLabelClass + '"></span></div>';
container.append(
'<div class="' + classes.attributeClass + ' ' + item.code + '" ' +
......
......@@ -3109,7 +3109,6 @@ Time in seconds between the widget updates.,module,Magento_CatalogWidget
"See Details","Ver información",module,Magento_Checkout
"Options Details","Detalles de las opciones",module,Magento_Checkout
"Remove","Eliminar",module,Magento_Checkout
"Cart Subtotal","Subtotal del carrito",module,Magento_Checkout
"No Payment Methods","No Payment Methods",module,Magento_Checkout
"Payment Information","Información de pago",module,Magento_Checkout
"No Payment method available.","Ningún método de pago está disponible.",module,Magento_Checkout
......@@ -15493,7 +15492,7 @@ formElements/*[name(.)=../../@formElement]/settings/title,module,Magento_Ui
"Item in Cart", "Artículo en el carrito"
"You have no items in your shopping cart.", "No tiene elementos en su carrito de compras."
"View and Edit Cart","Ver y editar carrito"
"Cart Subtotal", "Subtotal del carrito"
"Cart Subtotal", "Subtotal"
"You can track your order status by creating an account.", "Puede rastrear el estado de su pedido creando una cuenta."
"View Details", "Ver detalles"
"Options Details", "Detalles de opciones"
......@@ -15591,4 +15590,8 @@ Add your photo,Añadir sus fotos
Customer Login,Inicio de sesión del cliente
My Wish List, Mi lista de deseos
"Last Added Items","Últimos elementos añadidos"
Size Guide, Guía de tamaño
Product Size Describe,Descripción del tamaño del producto
Show Password,Mostrar contraseña
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment