npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fuibox/po

v1.0.0

Published

Extract untranslated entries from PO files

Downloads

209

Readme

po

🔍 A simple CLI tool to extract untranslated entries from PO (Portable Object) files.

Installation

Local Installation (Recommended)

npm install -D po

Usage

Basic Usage

# Check all .po files
po "**/*.po"

# Check specific directory
po "src/locales/**/*.po"

# Check single file
po "locales/zh/messages.po"

Options

Default: Full PO Format

Shows complete PO entries with references, msgid, and msgstr.

po "src/locales/**/*.po"

Output:

============================================================
📁 File: src/locales/zh/messages.po
📊 Found 2 untranslated entries
============================================================

#: xxx:68
msgid "Value:"
msgstr ""

#: xxx:80
msgid "NFT Member:"
msgstr ""

--text: Text Only

Shows only the untranslated text content.

po "src/locales/**/*.po" --text

Output:

============================================================
📁 File: src/locales/zh/messages.po
📊 Found 2 untranslated entries
============================================================

Value:
NFT Member:

-s, --summary: Summary Only

Shows only file paths and counts.

po "src/locales/**/*.po" -s

Output:

📁 src/locales/zh/messages.po: 2 untranslated
📁 src/locales/ja/messages.po: 5 untranslated

Usage with npm scripts

Add to your package.json:

{
  "scripts": {
    "check:i18n": "po 'src/locales/**/*.po'",
    "check:i18n:text": "po 'src/locales/**/*.po' --text",
    "check:i18n:summary": "po 'src/locales/**/*.po' -s"
  },
  "devDependencies": {
    "@fuibox/po": "^1.0.0"
  }
}

Then run:

npm run check:i18n

Usage with npx (No Installation Required)

npx @fuibox/po "src/locales/**/*.po"
npx po "**/*.po" --text

Examples

Check all locales

po "locales/**/*.po"

Check specific language

po "locales/zh-CN/messages.po" --text

Check and save to file

po "src/locales/**/*.po" > untranslated.txt
po "src/locales/**/*.po" --text > untranslated-text.txt

Use in CI/CD

# .github/workflows/check-i18n.yml
name: Check Translations

on: [push, pull_request]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
      - run: npm install -g po
      - run: po "src/locales/**/*.po" -s

Options Summary

| Option | Description | Output | |--------|-------------|--------| | (default) | Full PO format | Complete entries with references | | --text | Text content only | Just the msgid values | | -s, --summary | Summary only | File paths and counts |

Help

po --help

or simply:

po

License

MIT

Keywords

  • po
  • lingui

Repository

[GitHub Repository URL]

Bugs

[GitHub Issues URL]

Author

Your Name