定制 ottowayne/laravel-langcheck 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ottowayne/laravel-langcheck

Composer 安装命令:

composer require ottowayne/laravel-langcheck

包简介

Laravel package to find missing translation entries

README 文档

README

Adds a "lang:check" Artisan command that finds missing entries in your translation files.

This package is no longer maintained - you may look into laravel-langman

Compatibility

  • Laravel 5.0

Installation

To install via composer add the following line to your composer.json:

"ottowayne/laravel-langcheck": "dev-master"

I recommend using this package in local environments (require-dev) only.

Finally add the service provider to your app.php:

'Ottowayne\LangCheck\LangCheckServiceProvider',

Configuration

You may export the configuration file via

php artisan config:publish ottowayne/langcheck

and edit it as you like.

Usage

You can use the command

php artisan lang:check

to search for differences in all language files or edit the configuration settings to either log or throw an exception if an unused key is found.

If you want to define your own behaviour you can listen for the LangCheck::missingtranslation event.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-29