PHP code example of hsm / lokale

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

    

hsm / lokale example snippets


'providers' => [
    Hsm\Lokale\LokaleServiceProvider::class,
];


/**
 * Generated with hsm/lokale
 */
return [
    'welcome' => 'Welcome',
    'greeting' => 'Greeting', // @TODO Add translation
];
bash
php artisan locale:make

resources/lang/fr/messages.php
resources/lang/fr/auth.php
bash
php artisan locale:sync --from=en --to=fr
bash
php artisan locale:attributes --locale=fr