jaysontemporas/translation-overrides
A Laravel package for overriding your application's translation strings without editing vendor language files. Store custom translations in the database or config so they take precedence over the defaults, making it easy to tweak wording per project, environment, or locale.
Architecture fit
Translator (most likely via Lang::addLines() or a decorated FileLoader) that lets an application override translation keys — including vendor/package namespaced keys — without forking the upstream package or editing vendor/.vendor:publish, but there is no first-class, per-key override layer that survives composer update. A small package that fills that gap fits cleanly into the framework's documented extension points.Integration feasibility
composer require, publish config (and migration if overrides are DB-backed), register overrides, done. Effort is low for a config-file approach; medium if overrides are persisted and need caching, seeding, and an admin surface.composer.json PHP/Laravel version constraints, (2) whether the override source is config, DB, or both, (3) merge precedence relative to vendor lang files and lang/ files, (4) whether namespace/group syntax (package::file.key) is supported.Technical risk
config:cache, or a translation cache can cause overrides to apply in staging but not production (or vice versa) with no error.Key questions
lang/, vendor lang files, and JSON translations?Lang::addLines() deliver the same value with less dependency risk?Stack fit
laravel-lang/* locale packs and spatie/laravel-translation-loader. It will likely conflict with any other package that rebinds or decorates translator, so inventory those first.Migration path
vendor/, (b) committed copies of vendor lang files, (c) a custom Lang::addLines() call in AppServiceProvider, or (d) forked packages. This package consolidates (a) and (b) and formalizes (c).Compatibility
php artisan config:cache, route:cache, and optimize.Sequencing
composer.json; confirm license and constraints (time-boxed, ~1 hour).addLines(), prefer an internal provider and drop the dependency.Maintenance
composer.json, commit the lockfile, and run composer audit in CI.Support
Scaling
Failure modes
Ramp-up
Lang::addLines(), reimplement internally and keep the dependency count at zero.How can I help you explore Laravel packages today?