PHP code example of yarcode / yii2-i18n-yarcode

1. Go to this page and download the library: Download yarcode/yii2-i18n-yarcode library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yarcode / yii2-i18n-yarcode example snippets


'components' => [
    ...,
    'i18n' => [
        'class' => yarcode\i18n\components\I18N::className(),
        'languages' => [
            'en-EN' => 'English',
            'es-ES' => 'Español',
            'ru-RU' => 'Русский',
        ],
        'defaultLanguage' => 'en-EN',
        'on missingTranslation' => ['yarcode\i18n\Module', 'missingTranslation']
    ],
    ...
]


'modules' => [
    ...,
    'i18n' => yarcode\i18n\Module::className(),
    ...
]

php composer.phar 

php yii migrate --migrationPath=@vendor/yii-dream-team/yii2-i18n-yarcode/src/migrations