Download the PHP package vxm/laravel-view-localization without Composer
On this page you can find all versions of the php package vxm/laravel-view-localization. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vxm/laravel-view-localization
More information about vxm/laravel-view-localization
Files in vxm/laravel-view-localization
Package laravel-view-localization
Short Description Support dynamic render view by user locale for your Laravel application.
License MIT
Homepage https://github.com/vuongxuongminh/laravel-view-localization
Informations about the package laravel-view-localization
Laravel View Localization
About it
A package support you dynamic render view by user locale for Laravel application.
Installation
Require Laravel View Localization using Composer:
You need to publish the config-file with:
This is the contents of the published config file:
Usage
It is a way to replace a set of views with another by user locale without the need of touching the original view rendering code.
You can use it to systematically change the look and feel of an application depend on user locale.
For example, when call view('about')
, you will be rendering the view file resources/views/about.blade.php
, if user locale is vi
, the view file resources/views/vi/about.blade.php
will be rendered, instead.
Note: If the application locale is the same as source locale original view will be rendered regardless of presence of translated view.
The package will automatically register itself. Now your application can dynamic render view by user locale.