dev-master
9999999-devParse templates, extracts laguages and sync them through different translations.
MIT
The Requires
- php >=5.4.0
- illuminate/support 4.2.*
by Ivan Dokov
by Lyubomir Gardev
Wallogit.com
2017 © Pedro Peláez
Parse templates, extracts laguages and sync them through different translations.
Language Extractor and Synchroniser, (*1)
This package is developed for Laravel 4.2. Larvel 5.0+ support is comming soon., (*2)
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., (*3)
All language files will be parsed with a unified translation code-style., (*4)
You can easily install the package in your Laravel project by simply executing the following command:, (*5)
composer require rolice/lang-sync, (*6)
After the installation you have to add the service provider in app config:, (*7)
'Rolice\LangSync\LangSyncServiceProvider'
for PHP 5.6+ you can add the following:, (*8)
Rolice\LangSync\LangSyncServiceProvider::class
The usage is done through artisan command. This is done through command line like:, (*9)
php artisan locale:extract, (*10)
You can easily call it programmatically from your PHP code like, in case command line is not accessible:, (*11)
Artisan::call('locale:extract')
Parse templates, extracts laguages and sync them through different translations.
MIT