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.1.0
2026-05-06 01:28 UTC
Requires
- php: ^8.4
- laravel/framework: ^12.0 | ^13.0
- statamic/cms: ^6.0
Requires (Dev)
- laravel/pint: ^1.27
- mockery/mockery: ^1.6
- orchestra/testbench: ^v11.1.0
- orchestra/testbench-core: ^v11.3.1
- phpunit/phpunit: ^11.0 | ^12.0
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