function _( messaggio ) { var messaggi = { "compilareCorrettamenteCampiObbligatori" : "Please fill correctly in the required fields", "consensoTrattamentoDatiObbligatorio" : "Consent to the processing of personal data is mandatory." }; return messaggi[messaggio] ? messaggi[messaggio] : messaggio; }