We can set message for each rule in model (active record) class. But I want these messages is not static text, they can be translated by current language. Please help me. Thanks !
We can set message for each rule in model (active record) class. But I want these messages is not static text, they can be translated by current language. Please help me. Thanks !
Use Yii::t()…
//In the configuration of the rule:
'message'=>Yii::t(...),