PHPackages                             erag/laravel-lang-sync-inertia - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. erag/laravel-lang-sync-inertia

ActiveLibrary[Localization &amp; i18n](/categories/localization)

erag/laravel-lang-sync-inertia
==============================

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

v2.2.6(1w ago)4925.3k↑16.8%5MITPHPPHP &gt;=8.1.0CI passing

Since May 7Pushed 1w ago1 watchersCompare

[ Source](https://github.com/eramitgupta/laravel-lang-sync-inertia)[ Packagist](https://packagist.org/packages/erag/laravel-lang-sync-inertia)[ GitHub Sponsors](https://github.com/eramitgupta)[ RSS](/packages/erag-laravel-lang-sync-inertia/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (28)Versions (20)Used By (0)

Laravel Lang Sync Inertia
=========================

[](#laravel-lang-sync-inertia)

[![License](https://camo.githubusercontent.com/e60623f508586f049d48cfb8396ee411b0c9bc3be174381a1893c37462a3c1e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e63652d4d49542d626c7565)](https://github.com/eramitgupta/laravel-lang-sync-inertia/blob/main/LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/61be229914f5504f8a53faa42e71de529a499622c5989fcf9f5e416c711f137e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657261672f6c61726176656c2d6c616e672d73796e632d696e65727469613f6c6162656c3d537461626c65)](https://packagist.org/packages/erag/laravel-lang-sync-inertia) [![Laravel Compatibility](https://camo.githubusercontent.com/9a3feea3f215a5e9e2eca7543cfd5154b86ea0d33a2d7fb3c0a36746283e21b4/68747470733a2f2f62616467652e6c61726176656c2e636c6f75642f62616467652f657261672f6c61726176656c2d6c616e672d73796e632d696e6572746961)](https://packagist.org/packages/erag/laravel-lang-sync-inertia)[![Total Downloads](https://camo.githubusercontent.com/daed751b17ed1d2ff24be063229b936e32816da1e723233e1cd95e2122cd81f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657261672f6c61726176656c2d6c616e672d73796e632d696e65727469612e7376673f6c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/erag/laravel-lang-sync-inertia)

About Laravel Lang Sync Inertia
-------------------------------

[](#about-laravel-lang-sync-inertia)

Laravel Lang Sync Inertia is a lightweight package for sharing Laravel translation files with Inertia.js applications. It provides a simple way to make backend language files available inside Vue 3, React, and Svelte pages without manually passing translation props in every response.

Features
--------

[](#features)

- 🔄 Automatic translation sharing through Inertia.js shared props.
- 📦 Load single or multiple Laravel language files with `syncLangFiles()`.
- 🧩 Dedicated Vue 3, React, and Svelte helpers from `@erag/lang-sync-inertia`.
- 📝 Use clean frontend helpers like `__()`, `trans()`, `transChoice()`, and `trans_choice()`.
- ✨ Laravel-style placeholder replacement with `:name` values.
- 🧱 Legacy `{name}` placeholder support for existing translation files.
- 🔢 Pluralization support with Laravel-style exact and interval choices.
- 🌐 Locale-aware loading from `lang/{locale}` using Laravel's current app locale.
- 📤 Export PHP language files to frontend-ready JSON with `php artisan erag:generate-lang`.
- ↩️ Direct string fallback when a translation key is not found.
- 🛠️ Configurable language source and JSON output paths.
- ✅ TypeScript-ready frontend helper package.

Documentation
-------------

[](#documentation)

Documentation for Laravel Lang Sync Inertia can be found at .

Installation
------------

[](#installation)

Install the Laravel package using Composer:

```
composer require erag/laravel-lang-sync-inertia
```

Install the frontend helper package using npm:

```
npm install @erag/lang-sync-inertia
```

NPM package repository:

Contributing
------------

[](#contributing)

Thank you for considering contributing to Laravel Lang Sync Inertia.

Support the Project ⭐
---------------------

[](#support-the-project-)

If you find Laravel Lang Sync Inertia useful, please consider giving it a star on GitHub. It helps the project grow and reach more developers!

License
-------

[](#license)

Laravel Lang Sync Inertia is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

56

—

FairBetter than 97% of packages

Maintenance98

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~6 days

Total

17

Last Release

11d ago

Major Versions

v1.8.0 → v2.0.02026-02-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/72160684?v=4)[Er Amit Gupta](/maintainers/eramitgupta)[@eramitgupta](https://github.com/eramitgupta)

---

Top Contributors

[![eramitgupta](https://avatars.githubusercontent.com/u/72160684?v=4)](https://github.com/eramitgupta "eramitgupta (69 commits)")[![catatsumuri](https://avatars.githubusercontent.com/u/3275569?v=4)](https://github.com/catatsumuri "catatsumuri (3 commits)")[![herovish143](https://avatars.githubusercontent.com/u/50791285?v=4)](https://github.com/herovish143 "herovish143 (3 commits)")[![medchelios](https://avatars.githubusercontent.com/u/11645845?v=4)](https://github.com/medchelios "medchelios (1 commits)")

---

Tags

inertiajslaravellocalizationlocalization-managementmulti-languagereactjssvelte5translationsvuejslaravellocalizationi18ntranslationsinertiainertiajsmulti-languagevue-i18nlaravel-i18nlaravel-inertialang-managerlang-syncdynamic-translationslanguage-synctranslation-syncinertia-langlanguage-managerlaravel-l10nreact i18ntranslation-helpersvelte i18n

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/erag-laravel-lang-sync-inertia/health.svg)

```
[![Health](https://phpackages.com/badges/erag-laravel-lang-sync-inertia/health.svg)](https://phpackages.com/packages/erag-laravel-lang-sync-inertia)
```

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

813100.4k](/packages/outhebox-laravel-translations)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[laravel/folio

Page based routing for Laravel.

603583.7k33](/packages/laravel-folio)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
