cube-agency / filament-translations
用于语言/翻译管理的Filament插件
v1.0.3
2024-09-13 07:48 UTC
Requires
- php: ^8.1
- arbory/translation: ^2.8
- bezhansalleh/filament-language-switch: ^3.1
- eightynine/filament-excel-import: ^3.0
- filament/filament: ^3.0
- illuminate/contracts: ^10.0|^11.0
- pxlrbt/filament-excel: ^2.3
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
添加带有导入/导出功能的语言/翻译资源。
安装
您可以通过composer安装此包
composer require cube-agency/filament-translations
运行迁移
php artisan migrate
将插件添加到您的面板提供者
use CubeAgency\FilamentTranslations\FilamentTranslationsPlugin; public function panel(Panel $panel): Panel { return $panel ... ->plugins([ ... FilamentTranslationsPlugin::make() ]); }
可选,您可以使用以下方式发布视图
php artisan vendor:publish --tag="filament-translations-views"
使用方法
- 在语言资源中添加语言
- 运行导入命令以从语言(/lang)文件中加载翻译
php artisan translator:load
测试
composer test
变更日志
有关最近更改的更多信息,请参阅变更日志。
贡献
有关详细信息,请参阅贡献指南。
安全漏洞
有关如何报告安全漏洞的详细信息,请参阅我们的安全策略。
鸣谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。