I need to access variables that are in my "message.properties" file from a .js file Suppose we have the following:
message.properties
ERROR = La longitud máxima son 20 digitos.
validacion.js In this file, what I currently have is the following:
$.validator.addMethod('msis', function (value, element) {
var result = false, m, regex1 = /^\d{1,20}$/;
if(regex1.test(value))
result = true;
return result;
}, 'Formato invalido. ');
Does anyone know how I could replace the text string that I currently show "Format invalidated" by the ERROR of my message.properties?