I18nAwareTrait
trait I18nAwareTrait
I18n aware trait.
Properties
protected I18n | $i18n | I18n. |
Methods
string
translateFieldName(string $field, string $package)
Returns a translated field name.
array
getI18nParameters(string $field, string $package)
Gets the i18n parameters.
string
getTranslatedErrorMessage(string $field, string $rule, string|null $package = null)
Returns the translated error message.
Details
at line 44
RuleInterface
setI18n(I18n $i18n)
Sets the I18n instance.
at line 58
protected string
translateFieldName(string $field, string $package)
Returns a translated field name.
at line 79
protected array
getI18nParameters(string $field, string $package)
Gets the i18n parameters.
at line 110
string
getTranslatedErrorMessage(string $field, string $rule, string|null $package = null)
Returns the translated error message.