Polyscope - The agent-first dev environment for Laravel

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.


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
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
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
Shift logo

Shift

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

Shift
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm