PHPackages                             linguijs/lingui-laravel - 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. linguijs/lingui-laravel

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

linguijs/lingui-laravel
=======================

Artisan command to generate localized JSON files with all your translations.

11PHPCI passing

Since Sep 26Pushed 7mo agoCompare

[ Source](https://github.com/linguijs/lingui-laravel)[ Packagist](https://packagist.org/packages/linguijs/lingui-laravel)[ RSS](/packages/linguijs-lingui-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Lingui Laravel
==============

[](#lingui-laravel)

Artisan command to generate localized JSON files with all your translations.

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

[](#installation)

To get started, install Lingui via the Composer package manager:

```
composer require linguijs/lingui
```

Next, install the [Lingui Vite plugin](https://github.com/linguijs/vite-plugin) to ensure that your translations are generated during Vite's build step and also whenever your files change while running the Vite's dev server.

First, install the plugin via your package manager:

```
npm i -D @linguijs/vite-plugin
```

Then, update your application's `vite.config.js` file to watch for changes to your application's lang files:

```
import { lingui } from "@linguijs/vite-plugin";

export default defineConfig({
  plugins: [
    lingui(),
    // ...
  ],
});
```

You can read about all of the plugin's configuration options in the [documentation](https://github.com/linguijs/vite-plugin).

Generating Translation Files
----------------------------

[](#generating-translation-files)

The ``lingui:make-json` command can be used to generate JSON files containing all your translations grouped by locale:

```
php artisan lingui:make-json
```

The `--locale` option may be used to generate translation for specific locale only:

```
php artisan lingui:make-json --locale=pt --locale=en
```

You can safely `.gitignore` the `public/lang` directory as he's completely re-generated on every build.

### Frontend Usage

[](#frontend-usage)

Please visit the [Lingui](https://github.com/linguijs/lingui) repo.

Requirements
------------

[](#requirements)

- PHP 8.2+

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance44

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/21958a981ba1ff240b4fe49e342cb66ff681bb315f3b3004e29ee28592b7ed1a?d=identicon)[collaborar](/maintainers/collaborar)

![](https://www.gravatar.com/avatar/56485a1b2e9d9c93a7b2bab4bbc13132ceb4f7654b4581a26675693602ae70ed?d=identicon)[paulomfr](/maintainers/paulomfr)

---

Top Contributors

[![paulomfr](https://avatars.githubusercontent.com/u/13263721?v=4)](https://github.com/paulomfr "paulomfr (22 commits)")

### Embed Badge

![Health badge](/badges/linguijs-lingui-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/linguijs-lingui-laravel/health.svg)](https://phpackages.com/packages/linguijs-lingui-laravel)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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