sleepybuildings/transchecker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sleepybuildings/transchecker

最新稳定版本:1.0.0

Composer 安装命令:

composer require sleepybuildings/transchecker

包简介

Laravel 5,1 Languagefile checker

README 文档

README

Simple Laravel Artisan command to check your language files for inconsistencies.

What it does

Transchecker checks your languagefiles and can report the following errors:

  • missing language files
  • missing entries
  • empty entries

Installation

Install through Composer: https://packagist.org/packages/sleepybuildings/transchecker

Then add the Transchecker serviceprovider to the your app config:

providers' => [
	...
	\Sleepybuildings\Transchecker\TranscheckerServiceProvider::class,
	...

]

Languagefiles needs to be in the resources/lang directory.

Usage

Run the check by executing the following artisan command:

php artisan lang:check

Sample output

>> php artisan lang:check
Languages found: en, nl
Namespaces found: auth, pagination, passwords, validation
Checking files...
There is 1 missing file:
+----------+------------+
| Language | Namespace  |
+----------+------------+
| nl       | validation |
+----------+------------+
There are 4 missing entries:
+----------+------------+----------+---------+
| Language | Namespace  | Entry    | Error   |
+----------+------------+----------+---------+
| nl       | pagination | previous | Missing |
| nl       | pagination | next     | Missing |
| en       | passwords  | sent     | Empty   |
| nl       | passwords  | token    | Missing |
+----------+------------+----------+---------+
Finished with 5 errors

Still todo...

  • Adding support for deeply nested arrays
  • Crosschecking parameters and pluralizations
  • Add ready-to-use unittesting possibilities
  • Add more comments in the sourcecode...
  • Add support for vendor languagefiles

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-10-08