bit-mx/statamic-translate-lang-files

Statamic utility to manage Laravel language files from the Control Panel.

Maintainers

Package info

github.com/bit-mx/statamic-translate-lang-files

Type:laravel-package

pkg:composer/bit-mx/statamic-translate-lang-files

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-03-09 23:13 UTC

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 utility
  • edit translation manager
  • sync 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 (true by default)
  • invalidate_opcache (true by default)

Testing

composer test

or:

./vendor/bin/phpunit