joedixon / nova-translation
A Laravel Nova tool.
Installs: 74 918
Dependents: 1
Suggesters: 0
Security: 0
Stars: 53
Watchers: 3
Forks: 17
Open Issues: 18
Language:Vue
Requires
- php: >=7.1.0
- joedixon/laravel-translation: ^1.0.0
This package is auto-updated.
Last update: 2024-11-10 07:50:21 UTC
README
Translation management for your Nova application.
About Nova Translation
Nova Translation is a tool for Laravel Nova which allows you full control over your translations when using Laravel's localization functionality.
The package allows you to manage your translations using either the native file based translations, but also provides a database driver which is useful in multi-server setups.
It exposes a user interface allowing you to update existing and add new translations to your application.
Below are a full list of features:
- File and database drivers
- Database translation loader (automatically load translations from the database when Laravel's translation retrieval methods and the database driver)
- User interface to add new languages and add and update translations
- Artisan commands to manage your translations
- Scan your application for missing translations
Installation
From the root of your Nova application run the following:
composer require joedixon/nova-translation
Open NovaServiceProvider.php
and add update the registerTools
method as
follows:
<?php
namespace Laravel\Nova;
...
use Joedixon\NovaTranslation\NovaTranslation;
class NovaServiceProvider extends ServiceProvider
{
...
protected function registerTools()
{
Nova::tools([
...
new NovaTranslation,
]);
}
}
Note: Under the hood, this tool uses the joedixon/laravel-translation
package. You
can find configuration instructions here.