LaravelPackages.net
Acme Inc.
Toggle sidebar
tomatophp/filament-translation-component

Translation Component as a key/value to use it with Spatie Translatable FilamentPHP Plugin

79.809
5
5.0.0
About tomatophp/filament-translation-component

tomatophp/filament-translation-component is a Laravel package for translation component as a key/value to use it with spatie translatable filamentphp plugin. It currently has 5 GitHub stars and 79.809 downloads on Packagist (latest version 5.0.0). Install it with composer require tomatophp/filament-translation-component. Discover more Laravel packages by tomatophp or browse all Laravel packages to compare alternatives.

Last updated

Cover

Filament Translation Component

Dependabot Updates PHP Code Styling Tests Latest Stable Version PHP Version Require License Downloads

Translation Component as a key/value to use it with Spatie Translatable FilamentPHP Plugin

Screenshots

Try it live on demo.tomatophp.com.

Demo dark Demo light

Light Textarea Dark Textarea Light Input Dark Input

Compatibility

| Package version | Filament | Laravel | PHP | |-----------------|----------|-----------|------| | 5.x | 5.x | 12.x, 13.x | 8.2+ | | 4.x | 4.x | 11.x, 12.x | 8.2+ |

Installation

composer require tomatophp/filament-translation-component:^5.0

Using

you can use the component on your form like this

use \TomatoPHP\FilamentTranslationComponent\Components\Translation;

Translation::make('title')
    ->label('Title')

you can change the language from the config file.

Convert input to textarea

use \TomatoPHP\FilamentTranslationComponent\Components\Translation;

Translation::make('title')
    ->label('Title')
    ->textarea()

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-translation-component-config"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-translation-component-lang"

Testing

if you like to run PEST testing just use this command

composer test

Code Style

if you like to fix the code style just use this command

composer format

PHPStan

if you like to check the code by PHPStan just use this command

composer analyse

Other Filament Packages

Checkout our Awesome TomatoPHP

Comments