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

npx-languages

v1.0.2

Published

Create, compile and translate language.json files out of a choice of languages.

Readme

npx-languages

Short Description

An easy way to create select languages, create json-files, translate content and unite them to a single languages.json.

This one can be used together with the react-lang-dropdown-package to create quickly a multilingual website.

Quick-start

Installing the package

    npm i npx-languages

Choose between language-packages and languages. Check all the languages that you want to use.

    npx initlang

    What language package you want to use? (Use arrow keys)
❯ European Union 
  South East Asia 
  Africa 
  Manual setup 

  Which languages you want to add? 
 ◯ Czech
 ◯ Danish
 ◯ Dutch
❯◉ English
 ◯ Finnish
 ◯ French
 ◯ German

A languages-folder with a language.json-file for each chosen language will be created. Populate the "content"-property with key-value-pairs of your content in this language

{
  "name": "English",
  "emoji": "🇬🇧",
  "nativeName": "English",
  "content": {
      "title": "Hello world",
      "Introduction": "Introduction in english."
  },
  "bcp47": "en",
  "native": "English"
}

If you want an automatic translation into a language, use the command "npx autotranslate". Choose a language.json-file with a populated content as template. Next choose a target language. Both languages have to be typed by the bcp-47-standards (i.e. "en" for english, "ar" for arabic, etc.).

    npx autotranslate

    Type in the language (bcp-47 symbol) to use as template. en
    Type in the language (bcp-47 symbol) to translate to. ar
        Translating en to ar.
        Translation successful. 
        {
        "name": "Arabic",
        "emoji": "🇸🇦",
        "nativeName": "العربية",
        "content": {
            "title": "مرحبا بالعالم",
            "Introduction": "مقدمة باللغة الإنجليزية."
        },
        "bcp47": "ar",
          "currency": {}
        }
    Written new language file

Now you have a language.json-file for each language that you want to use. You can use them seperately, add translated content automatically or manually, depending on your language-skills and time. To unite all files into a single languages.json-file, use the command "npx compilelang" and give it the path to the folder where you want to use it. It will create a languages-folder and a languages.json-file inside. This one can i.e. be used with the "react-lang-dropdown"-npm-package, to create a quick dropdown-menu in your react-apps with the specific language-content.

    npx compilelang

    npx compilelang
    Type in the relative path of your client-src-directory: ../client/src