patrick/language-panel
最新稳定版本:2.0.0
Composer 安装命令:
composer require patrick/language-panel
包简介
FilamentPHP plugin to manage translations with.
README 文档
README
A FilamentPHP plugin to load and manage translations with.
This package does three things:
- Loads translations from your
lang/directory, and uses Spatie's translation loader to store and read your data. - Provides you with a filament admin panel plugin to manage the loaded translations.
- Provides you with the option to download the translations in excel format, edit them, and upload them again.
Screenshots
Installation
- Install this package:
composer require patrick/language-panel - Publish the migrations of Spatie's package and run them:
php artisan vendor:publish --provider="Spatie\TranslationLoader\TranslationServiceProvider"
php artisan migrate
- Load your translations using artisan:
php artisan language-panel:import. - Publish the configuration assets to customize which functions of the panel
can be used:
php artisan vendor:publish --tag=language-panel-config. - Publish the translations if you would like to adjust them:
php artisan vendor:publish --tag=language-panel-lang.
Usage
Register
the following plugin in your admin panel: Patrick\LanguagePanel\LanguagePanel:make()
The panel will now be available at /language-lines, you can edit lines here that
you have imported.
Todo
- Support vendor lines
Great alternatives
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-20