Download the PHP package chinleung/laravel-locales without Composer
On this page you can find all versions of the php package chinleung/laravel-locales. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chinleung/laravel-locales
More information about chinleung/laravel-locales
Files in chinleung/laravel-locales
Package laravel-locales
Short Description Add configurations and helpers for a multi locale application.
License MIT
Homepage https://github.com/chinleung/laravel-locales
Informations about the package laravel-locales
Laravel Locales
Add configurations and helpers to make an application support multiple locales.
Installation
You can install the package via composer:
Configuration
By default, the application locales is only going to be en
. If your application support other locales, you can either set a app.locales
in your config/app.php
or publish the configuration file:
Helpers
locale(string $locale = null) : string
Retrieve or update the current locale of the application.
locales(array $locales = null) : array
Retrieve or update the supported locales of the application.
Has priority forapp.locales
overlaravel-locales.supported
.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Chin Leung
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.