# @lingui/format-json

> Reads and writes Lingui message catalogs as JSON, either minimal key-value files or files with full message metadata

Latest version **6.8.0** (published 2026-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lingui/format-json
pnpm add @lingui/format-json
yarn add @lingui/format-json
bun add @lingui/format-json
```

## 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.8.0 |
| Published | 2026-09-23 |
| First published | 2023-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.19.0 |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5875 |
| Maintainers | andrii.bodnar, serhiydmytryshyn |
| Keywords | lingui, json, catalog-format, message-catalog, i18n, translation, lingui-format, localization |

## Links

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

## Dependencies (1)

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 6.8.0 (latest) — 2026-09-23
- 6.0.0-next.4 (next) — 2026-04-17
- 5.1.2 (canary) — 2024-12-16
- 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
- 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
- … 66 more at https://npm.io/package/@lingui/format-json/versions

## README

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

# @lingui/format-json

> Reads and writes Lingui message catalogs as JSON, either minimal key-value files or files with full message metadata

`@lingui/format-json` 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 `minimal` style is a flat object of message IDs and translations. The `lingui` style keeps the source message, comments and origins alongside each translation.

## Usage

See the [catalog formats 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/catalog-formats#json
[package]: https://www.npmjs.com/package/@lingui/format-json
[badge-downloads]: https://img.shields.io/npm/dw/@lingui/format-json.svg
[badge-version]: https://img.shields.io/npm/v/@lingui/format-json.svg
[badge-license]: https://img.shields.io/npm/l/@lingui/format-json.svg

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