kg-bot/laravel-localization-to-vue
Exports your Laravel localization files into JavaScript so Vue components and vue-i18n can reuse the same translations. It supports PHP and JSON lang files, generates a JS object or module, can watch for changes, and keeps backend and frontend strings in sync without duplicate translation work.
lang/ PHP translation files into a JS-consumable format for vue-i18n. The realistic alternatives are (a) a 50–150 line artisan command you own, or (b) this package. v2.4 is a maintenance release, but it confirms the package tracks Laravel's release cadence — a genuine (if modest) input into that decision.laravel-shift compatibility commits in v2.4 mean Laravel 13 is supported. This unblocks treating the package as safe to keep through your next major Laravel upgrade rather than pinning the framework or scheduling a replacement.lang/ remain the source of truth and Vue consumes a generated artifact. That's a meaningful constraint on how product/content teams edit copy, and on whether you later want a TMS (Crowdin, Lokalise, Phrase) in the loop.Adopt when:
lang/ directory.en.json files.Look elsewhere or build in-house when:
kg-bot). Release cadence is low and the v2.3 → v2.4 delta is essentially a compat bump plus StyleCI formatting. That's fine for a utility, but don't route critical infrastructure through it without a fallback plan.Migration note: Because the output is a generated artifact, exit cost is low — you can replace it with an in-house exporter without touching application code. Treat it as reversible, and prefer wiring it behind a single composer script or npm task so swapping it later is a one-line change.
For executives: This is a small, low-cost utility that removes a recurring manual chore — keeping frontend and backend translations in sync — from our Laravel + Vue stack. The v2.4 release adds Laravel 13 support, which means it stays viable through our next framework upgrade instead of becoming a blocker. Cost is effectively zero (open source, no runtime footprint), the integration is a build step, and the exit cost is low because the output is just generated files. Recommendation: adopt as a build-time convenience, but don't treat it as strategic infrastructure — it's a single-maintainer project, so we keep the swap-out path short.
For engineering: v2.4 is a maintenance release — Laravel 13.x compatibility plus StyleCI formatting. No breaking changes, no deprecations, no API surface change, so it's a drop-in upgrade from v2.3. It automates exporting lang/*.php into a JS bundle for vue-i18n, which means PHP files stay the single source of truth for both server-side validation strings and client-side UI copy. Wire it into a composer/npm script so the generated output is reproducible in CI, commit the artifacts or generate at build time (pick one, document it), and keep an eye on the package's Laravel support matrix at each major upgrade. If maintenance stalls, the fallback is a small custom artisan command — the surface area we depend on is narrow enough that replacing it is a day of work, not a project.
How can I help you explore Laravel packages today?