default invalidMessage for a rule

When we specify a rule for form control like:
validate: webix.rules.isNotEmpty,
or by setting required:true
How can we setup a global (localized) invalidMessage for this rule?

This will save us from manually specifying an invalidMessage for every place where the rule is used.

Hello @mdissel ,
As a solution, you can define invalidMessage property in the form’s elementsConfig:

{
    view: "form",
    elementsConfig: {
        invalidMessage: "Incorrect data"
    }
}

Please take a look at the snippet:
https://snippet.webix.com/mj3t5257

I was thinking a more global solution, by specifying the (localized) message with the rule (including the use of variables, like {fieldName}, {fieldValue})