PHP code example of inspirapuntodo / easy-locale-for-laravel
1. Go to this page and download the library: Download inspirapuntodo/easy-locale-for-laravel 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/ */
inspirapuntodo / easy-locale-for-laravel example snippets
/*
|--------------------------------------------------------------------------
| Available locales
|--------------------------------------------------------------------------
|
| All locales supported by your application
| Format:
| - locale_key => locale_name
*/
'available_locales' => [
'es' => 'Español',
'en' => 'English',
]
bash
php artisan locale:make locations.cities
bash
Creating localization files for: locations/cities
CREATED 🌎🌍🌏 es/locations/cities 🎉
CREATED 🌎🌍🌏 en/locations/cities 🎉
Hasta luego! 👋
bash
php artisan locale:diff