This package is builted on spatie/laravel-translation-loader and bernhardh/nova-translation-editor packages.
- Add your translations to database
- Edit your translations in nova
- Sync your file lang resources with database
composer require epigra/translation
- Add NovaTranslationEditor to NovaServiceProvider
public function tools()
{
return [
...
new Epigra\Translation\NovaTranslationEditor()
];
}
- Publish Nova Translation Editor Config
php artisan vendor:publish --provider="Bernhardh\NovaTranslationEditor\ToolServiceProvider"
- Add your groups and languages to nova-translation-editor.config
This command sync's your database with lang resource files. You can specify a specific group or key with optional parameters. In default, it will check if there is a different in database and file version of key if there is it will ask you to sync.