X
X
xstriker782020-08-23 13:11:31
Yii
xstriker78, 2020-08-23 13:11:31

Why are label translations not working in YII2 form?

If you insert the type code into the form.

<?= Yii::t('app', 'username') ?>

Then it will work and display the name of the field in accordance with the translation into the language.
But the labels in the form are not translated.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2020-08-23
@myks92

You need to fill the method: getAtrributeLabels()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question