定制 rolice/lang-sync 二次开发

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

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

rolice/lang-sync

Composer 安装命令:

composer require rolice/lang-sync

包简介

Parse templates, extracts laguages and sync them through different translations.

README 文档

README

Language Extractor and Synchroniser

This package is developed for Laravel 4.2. Larvel 5.0+ support is comming soon.

How it works?

The package will walk through the application files and will search for any Lang::get or @lang statements and will check for translation in the proper language file. A new file will be created, in case no file exists or a line will be put in the langauge file if the exact translation is missing.

All language files will be parsed with a unified translation code-style.

Installation

You can easily install the package in your Laravel project by simply executing the following command:

composer require rolice/lang-sync

After the installation you have to add the service provider in app config:

'Rolice\LangSync\LangSyncServiceProvider'

for PHP 5.6+ you can add the following:

Rolice\LangSync\LangSyncServiceProvider::class

Usage

The usage is done through artisan command. This is done through command line like:

php artisan locale:extract

You can easily call it programmatically from your PHP code like, in case command line is not accessible:

Artisan::call('locale:extract')

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-01