bit-mx / statamic-translate-lang-files
Statamic utility to manage Laravel language files from the Control Panel.
Package info
github.com/bit-mx/statamic-translate-lang-files
Type:laravel-package
pkg:composer/bit-mx/statamic-translate-lang-files
1.0.0
2026-03-09 23:13 UTC
Requires
- php: ^8.4
- laravel/framework: ^12.0
- statamic/cms: ^6.0
Requires (Dev)
- laravel/pint: ^1.27
- mockery/mockery: ^1.6
- orchestra/testbench: ^10.9
- orchestra/testbench-core: ^10.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-03-09 23:17:15 UTC
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