# @lingui/babel-plugin-extract-messages

> Babel plugin to extract translatable messages from source code into Lingui catalogs

Latest version **6.7.0** (published 2026-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lingui/babel-plugin-extract-messages
pnpm add @lingui/babel-plugin-extract-messages
yarn add @lingui/babel-plugin-extract-messages
bun add @lingui/babel-plugin-extract-messages
```

## 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.7.0 |
| Published | 2026-09-11 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.19.0 |
| Dependencies | 1 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5871 |
| Author | Tomáš Ehrlich |
| Maintainers | andrii.bodnar, serhiydmytryshyn |
| Keywords | lingui, babel-plugin, extract-messages, static-analysis, i18n, catalog, translation, gettext |

## Links

- npm: https://www.npmjs.com/package/@lingui/babel-plugin-extract-messages
- 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/babel-plugin-extract-messages

## Dependencies (1)

- [@lingui/conf](https://npm.io/package/@lingui/conf.md) 6.7.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.7.0 (latest) — 2026-09-11
- 6.0.0-next.4 (next) — 2026-04-17
- 5.1.2 (canary) — 2024-12-16
- 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
- 6.1.0 — 2026-05-21
- 6.0.1 — 2026-04-30
- 6.0.0 — 2026-04-22
- 5.9.5 — 2026-04-06
- 6.0.0-next.3 — 2026-04-02
- 6.0.0-next.2 — 2026-03-27
- 5.9.4 — 2026-03-27
- … 176 more at https://npm.io/package/@lingui/babel-plugin-extract-messages/versions

## README

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

# @lingui/babel-plugin-extract-messages

> Babel plugin to extract translatable messages from source code into Lingui catalogs

`@lingui/babel-plugin-extract-messages` 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.

**Internal package.** `@lingui/cli` runs this plugin during `lingui extract` to collect the messages that go into the catalogs. You do not need to install it or add it to your Babel config. See the [message extraction guide][extraction] for what the extractor recognizes.

## License

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

[license]: https://github.com/lingui/js-lingui/blob/main/LICENSE
[documentation]: https://lingui.dev
[extraction]: https://lingui.dev/guides/message-extraction
[package]: https://www.npmjs.com/package/@lingui/babel-plugin-extract-messages
[badge-downloads]: https://img.shields.io/npm/dw/@lingui/babel-plugin-extract-messages.svg
[badge-version]: https://img.shields.io/npm/v/@lingui/babel-plugin-extract-messages.svg
[badge-license]: https://img.shields.io/npm/l/@lingui/babel-plugin-extract-messages.svg

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