Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Statamic Translate Lang Files Laravel Package

bit-mx/statamic-translate-lang-files

Edit Laravel/Statamic language files from the Statamic Control Panel. Browse locales and lang groups, update keys, save back to lang/{locale}/*.php, sync missing keys from a reference locale, optionally refresh caches, invalidate OPcache, and auto-commit to Git.

View on GitHub
Deep Wiki
Context7

Statamic Translate Lang Files

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
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle