andrewdevelop / api-localization
Basic locale switcher for Lumen
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^7.2
- illuminate/container: ^6.0
- illuminate/support: ^6.0
This package is auto-updated.
Last update: 2025-01-27 22:06:33 UTC
README
Install:
composer require andrewdevelop/api-localization:dev-master
Register service provider:
Open your bootstrap/app.php file and paste this
$app->register(Core\Localization\LocalizationServiceProvider::class)
Configure:
Open your .env file and set default locale and the comma-separated list of available locales
APP_LOCALE=en
APP_LOCALES=en,ar,ru