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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky