npm.io
6.12.0 • Published 6d ago

@lingui/format-po

Licence
MIT
Version
6.12.0
Deps
3
Size
16 kB
Vulns
0
Weekly
0
Stars
5.9K

License Version Downloads

@lingui/format-po

Reads and writes Lingui message catalogs as gettext PO files with ICU plurals, the default catalog format

@lingui/format-po 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.

PO is the default and recommended catalog format: it is readable, almost every translation tool supports it, and it carries comments, source locations and context for translators. The formatter ships with @lingui/cli, so install this package only to pass options.

Usage

See the catalog formats reference.

License

This package is licensed under the MIT license.

Keywords