Laravel localize
, (*1)
This package installs a global command that lets you easily install language files in your Laravel application., (*2)
The language files are downloaded from the awesome caouecs/Laravel-lang repository., (*3)
Installation
You can install the package globally via composer:, (*4)
composer global require pawelmysior/laravel-localize
Make sure that the global composer's vendor/bin
directory is in your system's $PATH
., (*5)
Usage
Cd into your Laravel application and run this command:, (*6)
laravel-localize LANG
where LANG is the code of the language you want to install. For example, to install German language files, run:, (*7)
laravel-localize de
The command will install the following files:, (*8)
resources/lang/de/auth.php
resources/lang/de/pagination.php
resources/lang/de/passwords.php
resources/lang/de/validation.php
resources/lang/de.json
Some other example languages:, (*9)
# Install Dutch language files
laravel-localize nl
# Install Polish language files
laravel-localize pl
# Install Spanish language files
laravel-localize es
You can find the list of available languages here., (*10)
License
The MIT License (MIT). Please see License File for more information., (*11)