Skip to content

codedor/laravel-locale-collection

Repository files navigation

Locale Collection for Laravel

A package to define locales via a facade for your project.

Installation

You can install the package via composer:

composer require codedor/laravel-locale-collection

Usage

use Codedor\LocaleCollection\Facades\LocaleCollection;
use Codedor\LocaleCollection\Locale;

LocaleCollection::add(new Locale('nl-BE', 'codedor.be', 'nl'))
    ->add(new Locale('fr-BE', 'codedor.be', 'fr'))
    ->add(new Locale('en-GB', 'codedor.com', 'en'));

Documentation

For the full documentation, check here.

Testing

vendor/bin/pest

Changelog

Please see CHANGELOG for more information on what has changed recently.

Upgrading

Please see UPGRADING for more information on how to upgrade to a new version.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover any security-related issues, please email info@codedor.be instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.