Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 2.13 KB

README.md

File metadata and controls

65 lines (40 loc) · 2.13 KB

Export and import translations with ease

Latest Version on Packagist Build Status Quality Score Total Downloads

Use this package to export your translations into an easy-to-use CSV format. Also you can export only those texts that are not yet translated in the rest of your locales.

Installation

You can install the package via composer:

composer require gnahotelsolutions/laravel-i18n-manager

Usage

Export all translations for all locales based on English:

php artisan i18n:export --from=en

Export only missing translations in Catalan based on English:

php artisan i18n:export --missing --from=en --to=ca

Import translations for all locales:

php artisan i18n:import --file=path/to/file.zip

⚠️ The ZIP file must be in the same format as the exported one. It should contain a folder for each locale and the individual files inside just like the regular resources/lang laravel folder

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.