Automattic / Automattic/xgettext-js

Add option for returning result as PO-formatted string

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
30
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Whereas the [GNU xgettext program](http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/xgettext-Invocation.html) generates a PO-formatted file, xgettext-js currently only returns a JavaScript object. This allows for more flexibility in consuming matched strings, but also places the burden on the end-user to convert said data to the PO format if that is the desired result. Adding an optional configuration property for specifying output format will provide a solution to this need.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no implementation files or tests; start by locating the configuration handling and the code that currently returns the JavaScript object. Compare the expected output with the linked GNU xgettext PO format, then add coverage showing that the optional format setting returns valid PO output without changing the default.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.