3x1io/filament-translations
最新稳定版本:v1.2.1
Composer 安装命令:
composer require 3x1io/filament-translations
包简介
Translations With DB & UI
README 文档
README
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
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.
统计信息
- 总下载量: 5.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 51
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-25



