3x1io/filament-translations

This package is abandoned and no longer maintained. No replacement package was suggested.

Translations With DB & UI

Maintainers

👁 fadymondy

Package info

github.com/fadymondy/filament-translations

Homepage

Issues

pkg:composer/3x1io/filament-translations

Fund package maintenance!

3x1io

Statistics

Installs: 5 411

Dependents: 0

Suggesters: 0

Stars: 51

v1.2.1 2023-09-11 07:20 UTC

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 87874e7bccde030c649da8c96b7e5e5a3d468ccb

  • 3x1 <info.woop@3x1.io>

uitranslationslaravelfilament

This package is auto-updated.

Last update: 2023-10-11 07:26:52 UTC


README

👁 Screenshot of Login

Filament Translations

Manage your translation with DB and cache, you can scan your languages tags like trans(), __(), and get the string inside and translate them use UI.

this plugin is build in spatie/laravel-translation-loader

Screenshots

👁 Screenshot of list
👁 Screenshot of settings
👁 Screenshot of edit

Installation

You can install the package via composer:

composer require 3x1io/filament-translations

Run migration:

php artisan vendor:publish --tag="filament-translations"
php artisan vendor:publish --tag="filament-translations-config"
php artisan migrate

In config/app.php (Laravel) or bootstrap/app.php (Lumen) you should replace Laravel's translation service provider

Illuminate\Translation\TranslationServiceProvider::class,

by the one included in this package:

Spatie\TranslationLoader\TranslationServiceProvider::class,

Add Language Middleware

go to app/Http/Kernel.php and add new middleware to $middlewareGroups

 'web' => [
 //...
 \io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class,
 ],

go to config/filament.php and add middleware to middleware auth array

 'middleware' => [
 'auth' => [
 //...
 \io3x1\FilamentTranslations\Http\Middleware\LanguageMiddleware::class
 ],
 //...
 ];

and now clear cache

php artisan optimize:clear

Changelog

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

Credits

License

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