panelis-php/translation
Composer 安装命令:
composer require panelis-php/translation
包简介
Manage application translations directly from the admin panel
关键字:
README 文档
README
Manage application translations directly from the Panelis admin panel.
Features
- Override Laravel translations without modifying language files
- Support for multiple locales
- Search and filter translation keys
- Store translation overrides in the database
- Composer-based Panelis plugin discovery
Requirements
- PHP 8.3+
- Laravel 13+
- Filament 5+
Installation
Install the package via Composer:
composer require panelis-php/translation
Run migrations:
php artisan migrate
Usage
After installation, a Translations menu will be available in the Panelis admin panel.
Translation overrides are stored in the database and automatically take precedence over the default language files.
For example, given the following translation:
__('auth.failed');
Default translation:
'failed' => 'These credentials do not match our records.',
You can override it from the admin panel:
These credentials are invalid.
The new value will be displayed throughout the application without modifying any files inside the lang directory.
How It Works
Panelis Translation stores custom translation values in the database and resolves them before falling back to Laravel's default translation files.
Priority order:
Database Override
↓
Laravel Language Files
↓
Translation Key
Roadmap
- Import translations from language files
- Export translation overrides
- Missing translation detection
- Translation usage tracking
- AI-assisted translation suggestions
License
The MIT License (MIT).
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-06-24