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 10mo 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 1w 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

16

—

LowBetter than 4% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

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://avatars.githubusercontent.com/u/130915933?v=4)[Collaborar](/maintainers/collaborar)[@collaborar](https://github.com/collaborar)

![](https://avatars.githubusercontent.com/u/13263721?v=4)[Paulo Ferreira](/maintainers/paulomfr)[@paulomfr](https://github.com/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

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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