Optional messages keyed by code that replace the built-in text.
Returns string
The message for the code.
Example
translateValidationCode('NIC_INVALID_FORMAT'); // 'NIC format is invalid.' translateValidationCode('NIC_INVALID_FORMAT', 'en', { NIC_INVALID_FORMAT:'Check your NIC' }); // 'Check your NIC'
Returns the message for a validation code in the given language. Unknown codes fall back to a generic "validation failed" message.