定制 panelis-php/translation 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-06-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固