what do you think
step 1 web.php
'language' => 'de',
'components' => [
'i18n' => [
'translations' => [
'app*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@app/messages',
'sourceLanguage' => 'en',
'fileMap' => [
'app' => 'app.php',
'app/error' => 'error.php',`
.....
Step2 I created the -foldert messages, and I added three folder in messages folder (en, fr, de) and created three file(each contained one)-app.php
'language' => 'de', when i change 'language' => 'hu'
Works with translation
step 3 But because I am a beginner I do not know what's next. I created two buttons but I can not write the Controller.
view/index.php
<a href="<?php echo Url::to(['']); ?>">German</a><br>
<a href="<?php echo Url::to(['']); ?>">Hungarian</a>
My question is how could the button to switch the language,Need to create a Controller, or work without it, it's how?
step 4 ?
Thanks