PHP code example of nstcactus / craft-translations-module

1. Go to this page and download the library: Download nstcactus/craft-translations-module 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/ */

    

nstcactus / craft-translations-module example snippets


     return [
       'modules' => [
         'translations-module' => [ 
           'class' => nstcactus\craftcms\modules\translations\TranslationsModule::class,
   
           // Optional properties
           'translationCategory' => 'dico',
           'translatableItemsTableName' => '{{%frontend_translatable_items}}',
           'translationsTableName' => '{{%frontend_translations}}',
         ],
       ],
   ];