Nova Translations Loader

outl1ne/nova-translations-loader image

Nova Translations Loader stats

Downloads
917.9K
Stars
37
Open Issues
1
Forks
33

View on GitHub →

This Laravel Nova package helps developers load translations into their packages.

Nova Translations Loader

The Nova Translations Loader is a Laravel Nova package designed to facilitate the loading of translations into Laravel Nova applications. This package is especially useful for developers building multilingual Nova packages, ensuring seamless integration of language files.

Key Features:

  • Ease of Translation Loading: Simplifies the process of incorporating translations into Nova packages.
  • Automatic Publishing Option: Allows translations to be automatically made publishable, easing the deployment process.

Requirements:

  • PHP version 8.0 or higher.
  • Laravel Framework version 9.0 or 10.0.
  • Laravel Nova version 4.0 or higher.

Installation:

The package can be installed via Composer:

composer require outl1ne/nova-translations-loader

Usage:

To use the package, include the LoadsNovaTranslations trait within a Laravel ServiceProvider and configure the loadTranslations method as shown below:

use Outl1ne\NovaTranslationsLoader\LoadsNovaTranslations;
 
class SomePackagesServiceProvider extends ServiceProvider
{
use LoadsNovaTranslations;
 
public function boot()
{
$this->loadTranslations(__DIR__ . '/../resources/lang', 'nova-package', true);
}
}

This setup allows for loading translations from a specified directory, associating them with a package name, and optionally setting them to be publishable.

Credits:

This package streamlines the translation management process in Laravel Nova applications, making it an essential tool for developers working with multilingual environments.

outl1ne photo

Digital product agency based in Tallinn, Estonia.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Outl1Ne Nova Translations Loader Related Articles

PHP 7.3’s First Release Candidate is Here image

PHP 7.3’s First Release Candidate is Here

Read article
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Celebian logo

Celebian

Celebian is a social media marketing agency specializing in helping their clients go viral on TikTok. Whether you're looking to reach a bigger audience or gain more Tiktok followers, likes, and views, they've got you covered.

Celebian
LoadForge logo

LoadForge

Scalable load testing for web apps & APIs. Simulate real-world traffic and identify breaking points and performance limits with powerful, scalable load tests designed for Laravel.

LoadForge
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech