| Package Data | |
|---|---|
| Maintainer Username: | Tarpsvo |
| Package Create Date: | 2020-09-15 |
| Package Last Update: | 2024-10-22 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-21 15:00:42 |
| Package Statistics | |
|---|---|
| Total Downloads: | 4,141,280 |
| Monthly Downloads: | 167,914 |
| Daily Downloads: | 7,787 |
| Total Stars: | 39 |
| Total Watchers: | 3 |
| Total Forks: | 40 |
| Total Open Issues: | 1 |
This Laravel Nova package helps developers load translations into their packages.
php: >=8.0
laravel/framework: ^9.0
laravel/nova: ^4.0
Install the package in a Laravel Nova project via Composer:
composer require outl1ne/nova-translations-loader
Inside a Laravel's ServiceProvider, use the LoadsNovaTranslations trait and call $this->loadTranslations():
use Outl1ne\NovaTranslationsLoader\LoadsNovaTranslations;
class SomePackagesServiceProvider extends ServiceProvider
{
use LoadsNovaTranslations;
public function boot()
{
// ...
/**
* Loads translations into the Nova system.
*
* @param string $packageTranslationsDir The directory for the packages' translation files.
* @param string $packageName The name of the current package (ie 'nova-menu-builder').
* @param boolean $publishTranslations Whether to also automatically make translations publishable.
* @return null
**/
$this->loadTranslations(__DIR__ . '/../resources/lang', 'nova-package', true);
// ...
}
}
Nova Translations Loader is open-sourced software licensed under the MIT license.