cube-agency/filament-translations

Filament plugin for language/translations management

v1.0.3 2024-09-13 07:48 UTC

This package is auto-updated.

Last update: 2024-12-13 08:17:56 UTC


README

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

Adds Language/Translations resources with import/export functionality.

Installation

You can install the package via composer:

composer require cube-agency/filament-translations

Run migrations:

php artisan migrate

Add the plugin to your panel provider:

use CubeAgency\FilamentTranslations\FilamentTranslationsPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ...
        ->plugins([
            ...
            FilamentTranslationsPlugin::make()
        ]);
}

Optionally, you can publish the views using

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

Usage

  • Add language(s) in Language resource
  • Run import command to load translations from language (/lang) files
php artisan translator:load

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.