Skip to content

printPo

printPo(entries): string

Defined in: packages/format-po/src/print-po.ts:12

Serialises PO entries back to a file.

The output is the layout msgcat produces — comments, then msgctxt, then the message, one blank line between entries — except that long lines are not wrapped. Wrapping is cosmetic and lossy to reproduce exactly, so it is left to msgcat for anyone who needs byte-identical output.

readonly PoEntry[]

string