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.

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
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Laravel Cloud logo

Laravel Cloud

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

Laravel Cloud
Honeybadger logo

Honeybadger

Simple developer-focused application monitoring for Laravel. Error tracking, log management, uptime monitoring, status pages, and more!

Honeybadger
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
MongoDB logo

MongoDB

Enhance your PHP applications with the powerful integration of MongoDB and Laravel, empowering developers to build applications with ease and efficiency. Support transactional, search, analytics and mobile use cases while using the familiar Eloquent APIs. Discover how MongoDB's flexible, modern database can transform your Laravel applications.

MongoDB