Setup bilingual (French and English) Laravel projects easily.
mlatjac/fren is a Laravel package for setup bilingual (french and english) laravel projects easily..
It currently has 0 GitHub stars and 7 downloads on Packagist (latest version 0.0.1).
Install it with composer require mlatjac/fren.
Discover more Laravel packages by mlatjac
or browse all Laravel packages to compare alternatives.
Last updated
Laravel package that supplies language tracking and language switching services and pulls in commonly used multi-language packages to create a sane basis for bilingual (French and English) Laravel apps.
Take a look at contributing.md to see a to do list.
Via Composer
$ composer require mlatjac/fren
The Language middleware sets the app's current locale to the currently selected language.
The package inserts this middleware in the middleware stack for all web routes.
To specifically invoke this middleware on a route, you can use its 'lang' alias, as in:
Route::get('/', function () {
return view('welcome');
})->middleware('lang');
This package registers language switching routes. These routes update the currently selected language and redirect back to the calling url.
The url '/lang/en' will switch the current language to English, the '/lang/fr' will switch the current language to French.
Use its route name 'lang.switch' along with its languageCode parameter with url builders, as in:
url(route('lang.switch',['languageCode' => 'en']))
Please see the changelog for more information on what has changed recently.
$ composer test
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.