dive-be/nova-translation-editor

A Laravel Nova tool for editing your translation strings.

0.3.2 2022-04-04 09:01 UTC

This package is auto-updated.

Last update: 2024-11-04 14:31:06 UTC


README

Latest Version on Packagist Software License Total Downloads

⚠️ Minor releases of this package may cause breaking changes as it has no stable release yet.

Installation

composer require dive-be/nova-translation-editor

You must publish and run the migrations to create the language_lines table:

php artisan vendor:publish --provider="Dive\NovaTranslationEditor\ToolServiceProvider" --tag="migrations"
php artisan migrate

Optionally you could publish the config file using this command.

php artisan vendor:publish --provider="Dive\NovaTranslationEditor\ToolServiceProvider" --tag="config"

Register the tool in NovaServiceProvider.

public function tools()
{
    return [
        new NovaTranslationEditor(),
    ];
}

Publish the translations via the nova tool or via command line:

php artisan nova-translation-editor:publish

Usage

TODO

Credits

License

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