Skip to content

Latest commit

 

History

History
94 lines (62 loc) · 3.03 KB

README.md

File metadata and controls

94 lines (62 loc) · 3.03 KB

Backstage: Translations for Filament

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Nice to meet you, we're Vormkracht10

Hi! We're a digital agency from Nijmegen in the Netherlands and we use Laravel for everything: advanced websites with a lot of bells and whistles and large web applications.

Before using

Please read this documentation first: https://github.com/backstagephp/laravel-translations

Installation

You can install the package via composer:

composer require backstage/translations

You can publish and run the migrations with:

php artisan vendor:publish --provider="Backstage\Translations\Laravel\TranslationServiceProvider"
php artisan vendor:publish --provider="Backstage\Translations\Filament\TranslationServiceProvider"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="translations-config"
php artisan vendor:publish --tag="backstage-translations-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="backstage-translations-views"

Add the TranslationsPlugin to the desired panel provider:

use Backstage\Translations\Filament\TranslationsPlugin;

$panel
    ->plugins([
        TranslationsPlugin::make(),
    ]);

Optionally, you can disable the language switcher and rely on the default language:

use Backstage\Translations\Filament\TranslationsPlugin;

$panel
   ->plugins([
       TranslationsPlugin::make()
           ->languageSwitcherDisabled(),
   ]);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.