epigra/laravel-localize

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (9.0.0) of this package.

Change your app locale and manage user sessions in your laravel projects easily

Installs: 1 589

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/epigra/laravel-localize

9.0.0 2022-03-30 12:17 UTC

README

This package auto registers a web middleware that sets user locales on session properly.

And also registers web routes as locale/{locale} for all available locales to set app locale on session and redirect user back.

You can set your available locales on your projects by adding a locales key and an array to your config/app.php

    'locale' => 'en',
    'locales' => ['en','tr','es','de'],

If you visit any of the available locales from locale/{locale} it'll set the session variable and your app locale would be also initiated automatically.

You can check https://github.com/epigra/laravel-int if you need country, currency and languages.

Opting Out Of Package Discovery

If you would like to disable auto-discovery for this package or want to use your customized Service Provider instead of package’s, you may add this package to the extra section in applications composer file:

"extra": {
    "laravel": {
        "dont-discover": [
            "epigra/laravel-localize"
        ]
    }
},