beyondcode/laravel-inline-translation
BeyondCode's Laravel Inline Translation lets you edit your app's translations directly in the browser—click text, translate inline, and save without leaving the page. It streamlines localization for Laravel projects and keeps translation files up to date.
Consider it as reference material, a reimplementation pattern, or a legacy stopgap — not as a live strategic dependency — when:
Look elsewhere, or build in-house, when:
Adoption criteria to apply: run a timeboxed compatibility spike to confirm framework/PHP support; treat the code as vendored source, not a composer dependency; require a security review before shipping; gate the editor behind auth and a non-production environment flag; define stable translation keys (never key on the English source string, or copy edits will orphan translations); pick one canonical translation store (lang/ files vs. database) and script a one-directional sync; add a CI guardrail asserting every wrapped key has a value for every supported locale.
To executives: This is a small, MIT-licensed Laravel add-on that lets teams edit translations directly in the application interface, writing changes back to language files. It is not a strategic investment — the project is archived, unmaintained since 2018, and has zero downstream dependents. Treat it as a reference implementation of the inline-translation-editing pattern, not a roadmap dependency. The underlying need — non-developers correcting copy without a deploy — is real and worth serving. The realistic paths are a small in-house build (roughly one to two weeks) or a maintained TMS, both of which give us modern framework compatibility and a support story. Adopting the package directly would trade a modest build cost for open-ended maintenance and security risk.
To engineering: The package is compact — config, migration, service provider, Blade directive, and middleware — so the blast radius is narrow and forking is feasible. But treat it strictly as legacy source: verify Laravel/PHP compatibility with a one-to-two-day spike first, then decide between a vendored fork and a clean reimplementation (often cheaper once review, tests, and upgrade burden are counted). Hard rules if we proceed: never enable in production; gate on environment/config plus auth, remembering that config:cache freezes that flag; place the middleware last in its group to avoid conflicts with other response-rewriting middleware (minifiers, debugbars); resolve the ambiguity between the "no database changes" marketing claim and the translations migration during the spike, since it determines whether we have a second source of truth; seed the store from existing resources/lang/*.json so we are not retranslating from zero; define stable keys before translating en masse; enforce a one-directional database-to-files export with a committed artifact; and add CI checks for missing translations before anyone outside the core team touches it. If the requirement outgrows a prototype or internal tool, the safer product decision is a maintained internal feature or a TMS integration.
How can I help you explore Laravel packages today?