npm.io
6.8.0 • Published 4h ago

@lingui/format-json

Licence
MIT
Version
6.8.0
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
5.9K

License Version Downloads

@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. 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.

License

This package is licensed under the MIT license.

Keywords