PHP code example of laravelway / jstranslate

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

    

laravelway / jstranslate example snippets


return [
    'files' => [
    ],

    'translate_script_path' => 'assets/translate.js',
    'translations_path' => 'assets/translations.{lang}.js',
];
bash
php artisan vendor:publish --tag="jstranslate-config"