andrewdevelop / api-localization by AndrewOverlord

Basic locale switcher for Lumen
7
0
2
Package Data
Maintainer Username: AndrewOverlord
Maintainer Contact: andrewdevelop@gmail.com (andrewdevelop)
Package Create Date: 2020-03-25
Package Last Update: 2020-03-27
Language: PHP
License: MIT
Last Refreshed: 2024-04-26 03:24:49
Package Statistics
Total Downloads: 7
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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