PHP code example of lispa / amos-translation

1. Go to this page and download the library: Download lispa/amos-translation 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/ */

    

lispa / amos-translation example snippets


  'view' => [
            'class' => 'open20\amos\core\components\AmosView',
            'theme' => [
                    'pathMap' => [
                        '@vendor/lajax/yii2-translate-manager/views/language/' => '@vendor/open20/amos-translation/src/views/translatemanager/'
                    ],
                ],
        ],

'translation' => [
    'class' => 'open20\amos\translation\AmosTranslation',
    'defaultTranslationLanguage' => 'en-GB',
],