dev-master
9999999-devEasy Support for translation. Exporting Excels, translate them and import it after finishing.
Apache
The Requires
by Freddy
Wallogit.com
2017 © Pedro Peláez
Easy Support for translation. Exporting Excels, translate them and import it after finishing.
!ALPHA RELEASE!, (*2)
Easy to use Translationsupport for your multilanguale Laravel App., (*3)
Export Excel files, translate it and import it again., (*4)
It's as easy as it sounds..., (*5)
Test it now!, (*6)
Require this package with composer, (*7)
composer require fr3ddy/easytrans
Add service provider to your app/config.php providers array, (*8)
Fr3ddy\Easytrans\EasytransServiceProvider::class,
Add Excel service provider to your app/config.php providers array, (*9)
Maatwebsite\Excel\ExcelServiceProvider::class,
Add Alias to your aliases array in your app/config.php, (*10)
'Excel' => Maatwebsite\Excel\Facades\Excel::class,
Publish config with, (*11)
php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"
set "force_sheets_collection" = true (line 466), (*12)
By using the following command in your project directory, an excel file will be generated in your storage/easytrans folder., (*13)
php artisan easytrans:export {lang}
Withing this excel file, you will find one sheet for each translation file existing for this language. Feel free to remove any sheet, it will not be a problem when importing it again., (*14)
By using the following command in your project directoy, the excel file in the storage/easytrans folder will be imported. As the filename I am expecting {lang}.xls, (*15)
php artisan easytrans:import {lang}
When importing, backup files are created, and new files are generated for all sheets in this excel based on the name of the sheet., (*16)
Easy Support for translation. Exporting Excels, translate them and import it after finishing.
Apache