inspirapuntodo / easy-locale-for-laravel
Easily manage your localization in your laravel app
Installs: 1 413
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^8.1.0
- laravel/pint: ^1.13
Requires (Dev)
- laravel/framework: ^10.31
- nunomaduro/larastan: ^2.6
README
Easy Locale for Laravel
Easy Locale for Laravel is a package intended to make working with localization easier.
Installation
Here's how you track your website with Easy Locale for Laravel:
Requires PHP 8.1+
First, install Easy Locale for Laravel via the Composer package manager:
composer require inspirapuntodo/easy-locale-for-laravel
Next, add the following to config/app.php
according to your locales, ex:
/* |-------------------------------------------------------------------------- | Available locales |-------------------------------------------------------------------------- | | All locales supported by your application | Format: | - locale_key => locale_name */ 'available_locales' => [ 'es' => 'Español', 'en' => 'English', ]
Usage
php artisan make:locale {locale_path}
Ex:
php artisan make:locale locations.cities
Expected output:
Creating localization files for: locations/cities
CREATED 🌎🌍🌏 es/locations/cities 🎉
CREATED 🌎🌍🌏 en/locations/cities 🎉
Hasta luego! 👋
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Contributors
Cesar Mendez (@Activ3mined)
Easy Locale for Laravel is an open-sourced software licensed under the MIT license.