joyching/laravel-i18n-tool

A Laravel package providing artisan commands to import and export language files from and to CSV.

v1.0.0 2019-10-09 16:37 UTC

This package is auto-updated.

Last update: 2024-11-10 04:12:17 UTC


README

Latest Version on Packagist StyleCI Build Status

Installation

Run composer require to install the package.

$ composer require joyching/laravel-i18n-tool

Finally add the following line to the providers array of your config/app.php file:

Joyching\I18n\I18nServiceProvider::class

Configuration

Publish configuration in Laravel 5

$ php artisan vendor:publish --provider="Joyching\I18n\I18nServiceProvider"

Export

Export the all i18n files to .csv files

$ php artisan i18n-tool:export

Export specific locale i18n files to .csv file, example: en

$ php artisan i18n-tool:export --locale=en

It will export .env files in laravel project storage/app/i18n-exports folder