Open majidakbari opened 7 years ago
As far as I know, there isn't really a good way too do this with valitron right now. The language system is pretty limited at the moment: there's no way to load language files from a different location*, or to override the default messages for built-in rules. I'm going to tag this as an "enhancement", because the language (or rather 'labels') system could use some tlc in V2
edit: * this is wrong: using the 3th and 4th parameter of the constructor, you can load language files from a different location
Hi, How can I add custom message for new custom validation rules in lang files? I mean instead of hard coding the new message, the code it self should be able to read this message from language files.
And the language file should be look like this: