M
M
MaikMain2018-02-26 20:45:37
Yii
MaikMain, 2018-02-26 20:45:37

How to display yii2 form validator errors in Russian.Yii2?

Good afternoon. The form validator throws the error "Title should contain at least 30 characters." How to make it appear in Russian? Where to set the soma wording?
Made it like this

[['title'], 'string', 'length' => [30, 80], 'message' => 'Длинна поля должна быть от 30 до 80 символов'],
. It doesn't work like that

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
A
Andrey, 2018-02-26
@MaikMain

In the config, look for something somewhere with the value en, you need to change it to ru.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question