bit-mx/statamic-translate-lang-files
最新稳定版本:1.1.0
Composer 安装命令:
composer require bit-mx/statamic-translate-lang-files
包简介
Statamic utility to manage Laravel language files from the Control Panel.
README 文档
README
Statamic utility package to edit Laravel language files from the Control Panel.
Requirements
- PHP 8.4+
- Laravel 12+
- Statamic 6+
Installation
composer require bit-mx/statamic-translate-lang-files php artisan statamic-translate-lang-files:install
Control Panel Assets
No host wiring is required. The package automatically publishes and registers its CP script.
If needed, you can republish assets manually:
php artisan vendor:publish --tag=statamic-translate-lang-files-assets --force
Permissions
Assign these permissions to the roles that should manage translations:
access translation-manager utilityedit translation managersync translation manager
Current Features
- Browse locales and translation groups from
lang/{locale}/*.php - Edit translation keys directly in Statamic CP utility
- Save updates to language files
- Sync missing keys from reference locale
- Optional cache refresh and optional Git auto commit via config
- OPcache invalidation on save/sync (configurable)
Configuration
Publish config:
php artisan vendor:publish --tag=statamic-translate-lang-files-config
Main config file: config/statamic-translate-lang-files.php
Useful flags in features:
refresh_caches(trueby default)invalidate_opcache(trueby default)
Testing
composer test
or:
./vendor/bin/phpunit
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-09