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

tolgee-merge-namespaces

v1.0.1

Published

A tool to merge translations across namespaces in Tolgee i18n files

Readme

tolgee-merge-namespaces

A command-line tool to merge translations across namespaces in Tolgee i18n files.

Installation

You can install the package globally:

npm install -g tolgee-merge-namespaces

Or use it directly with npx:

npx tolgee-merge-namespaces

Usage

tolgee-merge-namespaces [options]

Options

  • --dir, -d <path>: Specify the i18n directory (default: "i18n")
  • --help, -h: Show help message
  • --version, -v: Show version information

What it does

This tool helps you manage translations in Tolgee projects that use namespaces. It:

  1. Finds all language files in the i18n directory and its subdirectories
  2. Merges translations from namespace directories into the root language files
  3. When there are conflicts, it prioritizes translations from the root files
  4. Removes the namespace files after merging
  5. Removes empty namespace directories

Example

Suppose you have the following structure:

i18n/
  en.json
  de.json
  namespace1/
    en.json
    de.json
  namespace2/
    en.json

After running tolgee-merge-namespaces, all translations will be merged into the root files (i18n/en.json and i18n/de.json), and the namespace directories will be removed.

Testing locally

To test the package locally before publishing:

  1. Clone the repository
  2. Navigate to the project directory
  3. Run npm link to create a global symlink
  4. Now you can use tolgee-merge-namespaces command from anywhere

To unlink after testing:

npm unlink -g tolgee-merge-namespaces

License

MIT