downtoworld/filament-multilanguage is a Laravel package for laravel filament plugin for translations.
It currently has 1 GitHub stars and 16 downloads on Packagist.
Install it with composer require downtoworld/filament-multilanguage.
Discover more Laravel packages by downtoworld
or browse all Laravel packages to compare alternatives.
Last updated
This package aims to auto-discover most of the places that should be translated from your Filament application.
Then it also lets you translate them directly from the UI while using a cache driver so there is no performance issues.
You can install the package via composer:
composer require "downtoworld/filament-multilanguage:dev-main"
You can add the plugin to your panel (normally AdminPanelProvider):
use DTW\FilamentMultilanguage\FilamentMultilanguagePlugin;
$panel
...
->plugin(new FilamentMultilanguagePlugin)
...
You can publish and run the migrations with:
php artisan vendor:publish --tag="filament-multilanguage-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-multilanguage-config"
This is the contents of the published config file:
return [
'languages' => ['en', 'es', 'fr'], // CONFIGURE YOUR AVAILABLE LOCALES HERE
'authorized_emails' => [
//[email protected] INSERT YOUR EMAILS HERE
]
];
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.