LaravelPackages.net
Acme Inc.
Toggle sidebar
eboye/laravel-nova-translation-editor

Laravel Nova UI for editing Database Translations

7.113
8
0.0.6
About eboye/laravel-nova-translation-editor

eboye/laravel-nova-translation-editor is a Laravel package for laravel nova ui for editing database translations. It currently has 8 GitHub stars and 7.113 downloads on Packagist (latest version 0.0.6). Install it with composer require eboye/laravel-nova-translation-editor. Discover more Laravel packages by eboye or browse all Laravel packages to compare alternatives.

Last updated

Laravel Nova Translation Editor

This is the Laravel Nova Tool for managing translations. It's still work in progress.

You can view all the translations. Clicking on string you can edit it and save. The mutlilevel arrays in lang files are currently not working. So if you have idea on how to solve it. Please make a pull request.

It depends on spatie/laravel-translation-loader

So first you need to install it and set it up. Then add this Tool.

Installation

composer require eboye/laravel-nova-translation-editor

If you haven't already done, do publish Spatie/laravel-translation-loader migrations

php artisan vendor:publish --provider="Spatie\TranslationLoader\TranslationServiceProvider"
php artisan migrate

Usage

Publish Config

Publish config file and add any of the files you have in resource/lang/ folder

php artisan vendor:publish --provider="Eboye\LaravelNovaTranslationEditor\ToolServiceProvider"

config/trans_editor.php looks like this:

<?php
return [
    'auth'
];

Just add any of the lang files you need.

Add Nova tool

In your App\Providers\NovaServiceProvider.php, under tools, add

new LaravelNovaTranslationEditor

and also the import of the Class

use Eboye\LaravelNovaTranslationEditor\LaravelNovaTranslationEditor;

Screenshots

screenshot 1

Star History Chart