2017 © Pedro Peláez
 

library easytrans

Easy Support for translation. Exporting Excels, translate them and import it after finishing.

image

fr3ddy/easytrans

Easy Support for translation. Exporting Excels, translate them and import it after finishing.

  • Thursday, November 24, 2016
  • by Fr3ddy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads, (*1)

Easytrans

!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)

Installation

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)

Usage

Export

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)

Import

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)

The Versions

24/11 2016

dev-master

9999999-dev

Easy Support for translation. Exporting Excels, translate them and import it after finishing.

  Sources   Download

Apache

The Requires

 

by Freddy