@lingui/format-po-gettext
v6.8.0
Published
Reads and writes Lingui message catalogs as gettext PO files with native gettext plurals instead of ICU plurals
Readme
@lingui/format-po-gettext
Reads and writes Lingui message catalogs as gettext PO files with native gettext plurals instead of ICU plurals
@lingui/format-po-gettext 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.
Use this formatter when your translation platform does not understand ICU plural syntax in PO files. It converts ICU plurals to msgid_plural and msgstr[n] entries and back. Because gettext plurals are less expressive than ICU, nested plurals are not supported and select stays in ICU syntax, so prefer the default @lingui/format-po whenever your tools accept it.
Usage
See the catalog formats reference.
License
This package is licensed under the MIT license.
