Skip to content

parsePo

parsePo(text): PoEntry[]

Defined in: packages/format-po/src/parse-po.ts:44

Parses a GNU gettext PO or POT file.

Entries come back in file order, including the header (the entry with an empty id) and any obsolete #~ entries, so the list can be printed back without losing anything.

string

PoEntry[]

On a line that does not meet the grammar.