This change uses the i18n module when enabled so attribute labels are returned in the localized version.
NOTE this does NOT translate the massage string itself. A quick work around is to add he following to the rules declaration:
['body', AtLeastValidator::className(), 'in' => ['body', 'uploadfile'],
'message' => Yii::t('app', 'You must fill at least {min} of the attributes {attributes}.')],
And then in your app messages (example for Dutch):
'You must fill at least {min} of the attributes {attributes}.' =>
'Je moet minimaal {min} van de attributen {attributes} opgeven.'
This can be added to the documentation or even add a translation file for this module.
This change uses the i18n module when enabled so attribute labels are returned in the localized version.
NOTE this does NOT translate the massage string itself. A quick work around is to add he following to the rules declaration:
And then in your app messages (example for Dutch):
This can be added to the documentation or even add a translation file for this module.