Answer the question
In order to leave comments, you need to log in
How to edit language translation file in Yii2?
Made multilanguage on the site according to the article: https://habrahabr.ru/post/226931/
You need to edit the texts in the admin panel, that is, edit the en.php file
return [
'name' => 'Имя',
];
Answer the question
In order to leave comments, you need to log in
1. Transfer only UI to translation files
2. If you need to edit in the admin panel, then it’s easier to use not yii\i18n\PhpMessageSource but yii\i18n\DbMessageSource, that is, everything will be the same, but it will be stored in the database, which means CRUD for the admin panel will be possible make through gii generator in 2 minutes.
3. steel (texts, headings, etc. content is shorter) also stored in the database, but otherwise, for example, there is https://github.com/OmgDef/yii2-multilingual-behavior
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question