pawelmysior/laravel-localize
Composer 安装命令:
composer require pawelmysior/laravel-localize
包简介
Localize your Laravel application with a single command
README 文档
README
This package installs a global command that lets you easily install language files in your Laravel application.
The language files are downloaded from the awesome caouecs/Laravel-lang repository.
Installation
You can install the package globally via composer:
composer global require pawelmysior/laravel-localize
Make sure that the global composer's vendor/bin directory is in your system's $PATH.
Usage
Cd into your Laravel application and run this command:
laravel-localize LANG
where LANG is the code of the language you want to install. For example, to install German language files, run:
laravel-localize de
The command will install the following files:
resources/lang/de/auth.phpresources/lang/de/pagination.phpresources/lang/de/passwords.phpresources/lang/de/validation.phpresources/lang/de.json
Some other example languages:
# 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.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 1.04k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-27
