Answer the question
In order to leave comments, you need to log in
How to organize content translation in YII2?
We have two options:
1) Store `content_ru`,`content_en` in the model, get Yii::$app->language and somehow get
get->'content_'.Yii::$app->language (By the way, this is it possible to do it?)
2) Store `id`, and store a separate table `id`,`ru`,`en`, well, it's somehow like in Yii:t only with the base
What to choose after all. SEO doesn't matter
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