Looking to hire Laravel developers? Try LaraJobs

laravel-lang-installer maintained by ablunier

Description
Command for easily add languages to a Laravel project
Last update
2018/06/12 18:39 (dev-master)
Links
Downloads
974

Comments
comments powered by Disqus

Laravel languages installer

Install translation files for any language with a command in your laravel projects. The language files will be downloaded from the awesome caouecs languages repository.

Requirements

  • PHP 5.5 or higher.
  • Laravel >= 5.1

Installation

Add the package to your composer.json:

composer require ablunier/laravel-lang-installer

Add the service provider in app.php:

    Ablunier\Laravel\Translation\LanguageInstallerServiceProvider::class,

Publish the package's assets:

php artisan vendor:publish

Configuration

Edit the 'lang-installer.php' file in your config folder to add your required languages and files.

Usage

Execute the command:

php artisan lang:install