jan-dolata/translations_editor

v1.0.14 2016-11-21 15:49 UTC

This package is not auto-updated.

Last update: 2024-11-15 23:01:58 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Via Composer

$ composer require jan-dolata/translations_editor

Add ServiceProvider to config/app.

JanDolata\TranslationsEditor\TranslationsEditorServiceProvider::class

And publish TranslationsEditor config.

$ php artisan vendor:publish --provider="JanDolata\TranslationsEditor\TranslationsEditorServiceProvider"

Check config file.

config/translations_editor.php

Change folder name resources/lang/en to resources/lang/base (for new project).

$ mv resources/lang/en resources/lang/base

Add resources/lang/xx for all used laguages to .gitignore.

ex.

/resources/lang/en
/resources/lang/de
/resources/lang/pl

If you need, use seed. Add TranslationSeeder in DatabaseSeeder.php.

$this->call(JanDolata\TranslationsEditor\Engine\TranslationSeeder::class);

Done !

Usage

Go to .../translation/get to edit your translations lines.

Before save, backup file will store in storage/app/translations. Check that in .../translation/log page.

You can add new file to folder lang/base, it will be automatically added in editor.

Security

If you discover any security related issues, please email jan.dolata.gd@gmail.com instead of using the issue tracker.

Credits

License

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