Answer the question
In order to leave comments, you need to log in
How to add another language to the site using the zelenin/yii2-i18n-module?
Good day!
I use zelenin/yii2-i18n-module to translate messages on the site. All messages are stored in the database. And at the moment two languages are used: Russian and English.
There was a need to add another language (Swedish). How can this be implemented so that it is possible to translate messages already in the database?
Current config:
'modules' => [
...
'i18n' => 'app\modules\translationURL\TranslationModule',
'translationURL' => [
'class' => 'app\modules\translationURL\TranslationModule',
],
...
'components' => [
'i18n' => [
'class' => Zelenin\yii\modules\I18n\components\I18N::className(),
'missingTranslationHandler' => ['app\modules\translationURL\translationModule', 'missingTranslation'],
'languages' => ['ru-RU', 'en-EN']
],
...
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