Back to Explore

amannn/po-parser

GitHub
1 watchersOpen source

Last release: 5 months ago

Parses and serializes `.po` (gettext) file content in TypeScript, providing a small, zero-dependency parser. It’s useful for reading `.po` message entries like `msgid` and `msgstr`, including metadata, message context (`msgctxt`), and references and comments that start with `#.` or `#,`, then converting it to or from structured data.

Project status

  • The repository (amannn/po-parser) appears actively maintained, with an upstream push on 2025-12-29 and a recent tag update (v2.1.1 on 2025-12-29).
  • The update cadence looks fairly steady, with tags spaced by roughly weeks (v2.1.1 on 2025-12-29, v2.0.0 on 2025-12-10, and v1.0.2 on 2025-11-25).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.1.1

    5 months ago

    The provided release notes for v2.1.1 only mention a publishing retry. However, the actual code diff includes functional changes to how PO reference comments ("#:") are parsed and serialized, adding support for reference line numbers.

  • v2.0.0

    5 months ago

    v2.0.0 primarily refactors the public API types, replacing the old `Message` shape with a PO-spec-aligned `Entry` type. The runtime parser/serializer was updated to use `msgctxt`, `msgid`, and `msgstr` directly, and it now supports `#.` extracted comments as a list rather than a single description.

    BreakingFeatures
  • v1.0.2

    6 months ago

    v1.0.2 introduces special-character handling for PO parsing and serialization, specifically by adding escaping and unescaping logic. The parser now converts escaped sequences inside quoted fields into real characters, and the serializer emits escaped sequences for special characters.

  • v1.0.1

    6 months ago

    Release v1.0.1 is presented as a CI publishing fix. The code diff shows updates to the semantic-release pipeline, adding NPM publishing support and related configuration changes, along with minor semantic-release GitHub plugin option adjustments.

    Security
  • v1.0.0

    6 months ago

    v1.0.0 introduces the initial implementation of the project and adds support for flags. This release expands parsing capabilities, enabling additional constructs to be recognized during processing.

    Features