Skip to content

messageCatalogueFromPo

messageCatalogueFromPo(entries, options?): MessageCatalogue

Defined in: po-catalogue.ts:39

Indexes parsed PO entries into a catalogue.

The header entry supplies the locale and the plural rule. Obsolete entries, untranslated ones, and (by default) fuzzy ones are left out, so a lookup that misses falls through to the next catalogue in a chain instead of returning an empty string.

readonly PoEntry[]

PoCatalogueOptions

MessageCatalogue

When the header’s Plural-Forms is present but unparseable — a silent fallback there would mistranslate every plural in the catalogue without a trace.