Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question