Jump to content


Photo

Please help to workaround this issue in Magento2.1.5


  • Please log in to reply
1 reply to this topic

#1 edwardjame

edwardjame

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 05 February 2018 - 04:15 AM

Please help to workaround this issue
in Magento2.1.5

Translation not working



looking for the best presta addons with outstanding support? check this: PrestaShop Modules

#2 paulhudson

paulhudson

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 05 February 2018 - 07:31 AM

You should change :

"validate-email": [
function (v) {
return $.mage.isEmptyNoTrim(v) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(v);
},
'Please enter a valid email address (Ex: johndoe@domain.com).'
],
To :

"validate-email": [
function (v) {
return $.mage.isEmptyNoTrim(v) || /^([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9,!\#\$%&'\*\+\/=\?\^_`\{\|\}~-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*@([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z0-9-]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*\.(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,})$/i.test(v);
},
$.mage.__('Please enter a valid email address (Ex: johndoe@domain.com).')
],

Good luck!

Or you can click here to know the easiest & most optimal approach to this issue