Magento 2 – JS Messages Not Translated

js-translationmagento2

I use magento 2.0 and I have a problem.

The JS messages of fields control do not translated (like Please enter a valid email address (Ex: johndoe@domain.com). or Please enter 6 or more characters. Leading or trailing spaces will be ignored.)

This is a sample:

enter image description here

Best Answer

1) magento 2.0.5 (test - true)

lib/web/mage/validation.js

line 246 :

replace : 'Please enter a valid email address (Ex: johndoe@domain.com).'
$.mage.__('Please enter a valid email address (Ex: johndoe@domain.com).')
2) Del. static : pub/static/ (only dir) and var/view_preprocessed/ 
Related Topic