Skip to content

cube-agency/filament-translations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filament plugin for language/translations management

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published