# @lingui/loader

> Webpack-compatible loader that compiles Lingui message catalogs on the fly, so .po files can be imported directly

Latest version **6.12.0** (published 2026-11-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lingui/loader
pnpm add @lingui/loader
yarn add @lingui/loader
bun add @lingui/loader
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 6.12.0 |
| Published | 2026-11-03 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.19.0 |
| Dependencies | 2 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5936 |
| Author | Tomáš Ehrlich |
| Maintainers | andrii.bodnar, serhiydmytryshyn |
| Keywords | lingui, linguijs, webpack, webpack-loader, rspack, rsbuild, i18n, message-catalog, localization, translation, build-tooling |

## Links

- npm: https://www.npmjs.com/package/@lingui/loader
- Repository: https://github.com/lingui/js-lingui
- Homepage: https://lingui.dev
- Issues: https://github.com/lingui/js-lingui/issues
- npm.io page: https://npm.io/package/@lingui/loader

## Dependencies (2)

- [@lingui/cli](https://npm.io/package/@lingui/cli.md) 6.12.0
- [@lingui/conf](https://npm.io/package/@lingui/conf.md) 6.12.0

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 6.12.0 (latest) — 2026-11-03
- 6.0.0-next.4 (next) — 2026-04-17
- 5.1.2 (canary) — 2024-12-16
- 6.11.0 — 2026-10-29
- 6.10.1 — 2026-10-22
- 6.10.0 — 2026-10-16
- 6.9.1 — 2026-10-09
- 6.9.0 — 2026-10-01
- 6.8.0 — 2026-09-23
- 6.7.0 — 2026-09-11
- 6.6.0 — 2026-07-24
- 6.5.0 — 2026-07-06
- 6.4.0 — 2026-06-16
- 6.3.0 — 2026-06-10
- 6.2.0 — 2026-06-01
- … 182 more at https://npm.io/package/@lingui/loader/versions

## README

[![License][badge-license]][license]
[![Version][badge-version]][package]
[![Downloads][badge-downloads]][package]

# @lingui/loader

> Webpack-compatible loader that compiles Lingui message catalogs on the fly, so .po files can be imported directly

`@lingui/loader` is part of [Lingui][documentation]. Lingui is a lightweight, open-source internationalization (i18n) library for JavaScript and TypeScript. It brings compile-time macros and a CLI for message extraction to React, React Native, Vue, SolidJS, Astro, Svelte, and Node.js.

The loader works with Webpack, Rspack and Rsbuild and replaces the `lingui compile` step.

## Usage

See the [loader reference][reference].

## License

This package is licensed under the [MIT][license] license.

[license]: https://github.com/lingui/js-lingui/blob/main/LICENSE
[documentation]: https://lingui.dev
[reference]: https://lingui.dev/ref/loader
[package]: https://www.npmjs.com/package/@lingui/loader
[badge-downloads]: https://img.shields.io/npm/dw/@lingui/loader.svg
[badge-version]: https://img.shields.io/npm/v/@lingui/loader.svg
[badge-license]: https://img.shields.io/npm/l/@lingui/loader.svg

---
_Source: https://npm.io/package/@lingui/loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
