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.
Parameters
Section titled “Parameters”entries
Section titled “entries”readonly PoEntry[]
options?
Section titled “options?”Returns
Section titled “Returns”Throws
Section titled “Throws”When the header’s Plural-Forms is present
but unparseable — a silent fallback there would mistranslate every plural
in the catalogue without a trace.