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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sparkfountain/i18n-sync

v0.0.1

Published

A tiny tool to easily synchronize i18n language files

Readme

i18n-sync

This tiny tool synchronizes JSON properties for i18n.

If you have an i18n library that uses JSON files for different languages, you can simply synchronize their properties.

Use Cases

If you have ever worked with internationalization (in short: i18n), you will have discovered a common problem: Inconsistency between different languages. Usually, you start developing your application in a default language (e. g. English) and at some point of time in the future, you take the English translation file, duplicate it and rename all properties' values by the correct strings of the new target language.

However, if your app is continuously developed, new language-specific strings will be introduced and some may be deleted. And now you are in trouble: If you don't want to maintain each and every i18n property for all languages at all times, sooner or later you'll have missing strings in some languages. To avoid this problem, many i18n libraries automatically replace missing strings by those defined in a default language (e. g. English).

Using fallback strings is technically a simple solution, but it causes confusion for users if some parts of the app are written in one language and other parts in another language. To avoid this undesirable effect, i18n-sync helps you to easily organize your language strings at any point of time.

Features

  • merge translation strings from different language files
  • several merge strategies (combine, reduce, language-specific)
  • write a custom string placeholder to inexistent properties
  • automatically translate strings using LibreTranslate

Usage

Execute the following command to sync all JSON properties of different language files:

node i18n-sync.js <i18n-directory>

Replace <i18n-directory> with the directory name where your language definitions are saved.

You can configure the way i18n-sync works using command line parameters. For instance, if you want to merge your language files using the reduce strategy, execute the following:

node i18n-sync.js -r

A list of all available configuration options can be found in the following section.

Configuration Options

| Option | Command Line Parameter | Explanation | | ------------------------ | ---------------------- | ------------ | | Combine Strategy | -c | Use all properties of all languages. | | Reduce Strategy | -r | Use only properties that exist in all languages. | | Fit To Language Strategy | -f <language-file> | Use all properties of a specific language. Omit all properties of other languages that do not occur in the provided language. | | Todo Placeholder | -t | Write a "To Do" placeholder string into empty properties. | | Property Placeholder | -p | Write a placeholder string into empty properties that uses the name of the current property. | | Individual Placeholder | -i <placeholder> | Write the provided placeholder string into empty properties. | | Automatic Translation | -a | Automatically translates empty property values. Uses the reference string of the first language where the property is provided. | | Output Directory Name | -o <output-dir-name> | Define a custom output directory name.

License

This tool uses the MIT license. You can freely use and modify this software. Further information can be found in the LICENSE file.