# @lingui/macro

> Macro for generating messages in ICU MessageFormat syntax

Latest version **5.9.5** (published 2026-04-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.9.5 |
| Published | 2026-04-06 |
| First published | 2018-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20.0.0 |
| Dependencies | 2 |
| Unpacked size | 6.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5874 |
| Author | Tomáš Ehrlich |
| Maintainers | andrii.bodnar, serhiydmytryshyn |
| Keywords | babel-plugin-macros, i18n, internationalization, i10n, localization, i9n, translation, multilingual |

## Links

- npm: https://www.npmjs.com/package/@lingui/macro
- 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/macro

## Dependencies (2)

- [@lingui/core](https://npm.io/package/@lingui/core.md) 5.9.5
- [@lingui/react](https://npm.io/package/@lingui/react.md) 5.9.5

## 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

- 5.9.5 (latest) — 2026-04-06
- 5.1.2 (canary) — 2024-12-16
- 5.0.0-next.5 (next) — 2024-11-25
- 5.9.4 — 2026-03-27
- 5.9.3 — 2026-03-13
- 5.9.2 — 2026-02-23
- 5.9.1 — 2026-02-11
- 5.9.0 — 2026-01-23
- 5.8.0 — 2026-01-16
- 5.7.0 — 2025-12-12
- 5.6.1 — 2025-11-28
- 5.6.0 — 2025-11-12
- 5.5.2 — 2025-10-30
- 5.5.1 — 2025-10-10
- 5.5.0 — 2025-09-12
- … 132 more at https://npm.io/package/@lingui/macro/versions

## README

[![License][badge-license]][license]
[![Version][badge-version]][package]
[![Downloads][badge-downloads]][package]
[![Babel Macro][badge-macro]][linguijs]

# @lingui/macro

> [Babel Macros](https://github.com/kentcdodds/babel-plugin-macros) which transforms tagged template literals and JSX components to ICU MessageFormat.

`@lingui/macro` is part of [LinguiJS][linguijs]. See the [documentation][documentation] for all information, tutorials and examples.

## Installation & Usage

See the [reference][reference] documentation.

## License

[MIT][license]

[license]: https://github.com/lingui/js-lingui/blob/main/LICENSE
[linguijs]: https://github.com/lingui/js-lingui
[documentation]: https://lingui.dev
[reference]: https://lingui.dev/ref/macro/
[package]: https://www.npmjs.com/package/@lingui/macro
[badge-downloads]: https://img.shields.io/npm/dw/@lingui/macro.svg
[badge-version]: https://img.shields.io/npm/v/@lingui/macro.svg
[badge-license]: https://img.shields.io/npm/l/@lingui/macro.svg
[badge-macro]: https://img.shields.io/badge/babel--macro-%F0%9F%8E%A3-f5da55.svg

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