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

pkg:composer/andrewdevelop/api-localization

dev-master 2020-03-27 11:18 UTC

This package is auto-updated.

Last update: 2025-09-27 23:36:54 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