Skip to content

parsePoHeader

parsePoHeader(entries): Map<string, string>

Defined in: packages/format-po/src/po-header.ts:13

The header entry’s Key: value block, keyed by lower-cased field name.

A PO header is an RFC 822-shaped block stored in the msgstr of the entry whose msgid is empty. Field names are case-insensitive, so they are folded; values are kept verbatim.

Unlike a mail header, continuation lines are not defined for PO, so a line without a colon is skipped rather than folded into the one above it.

readonly PoEntry[]

Map<string, string>