upaid/translations-validator
Composer 安装命令:
composer require upaid/translations-validator
包简介
This package provides an artisan command that validates YAML files placed in resources/lang directory in a Laravel project
README 文档
README
This package provides an artisan command that validates YAML files placed in resources/lang directory in a Laravel project.
Installation
This package can be installed through Composer:
composer require upaid/translations-validator
Or by adding the following line to the require section of your Laravel app's composer.json file:
"require": { "upaid/translations-validator": "1.*" }
Run composer update upaid/translations-validator to install the package.
Usage
In order to validate your translation files execute the following command:
php artisan translations-validator:validate
In case there are any errors a full list is displayed. It's good to add it to pre-commit git hook in order to prevent people from commiting syntactically invalid YAML files.
统计信息
- 总下载量: 4.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-02