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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”PoEntry[]
Throws
Section titled “Throws”On a line that does not meet the grammar.