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

@locanext/nts

v1.0.7

Published

Creation and support of the multilingual project Next.js

Readme

Next.js + i18n with Locanext

The nts package works with the Locanext web app to help you manage translations in your Next.js projects.

Key Features

  • 🚀 Quick setup — create a Next.js project with internationalization ready to use.
  • 🌐 Simple JSON editing — edit translation files in the web app.
  • ⚡ Fast updates — download new translations with one command.
  • ✍ Variables — typed variables to avoid errors.

Quick Start: New Project

  1. Go to locanext.com and create a new project.
  2. Add languages to the project (Your Project → Menu → Languages).
  3. Create a Next.js project with translation support:
    npx @locanext/nts create
    This uses the official create-next-app@latest, so your project follows Next.js best practices.
    After running the command, you get a ready-to-use multilingual Next.js app.

Quick Start: Existing Project

  1. Go to locanext.com and create a project. If you already have JSON files, you can create a project from them.
  2. Install the nts package:
    npm i @locanext/nts
  3. Link your local project and create the config:
    npx nts init
  4. Download the latest translations:
    npx nts update

By default, the CLI adds translations to the /locales folder.


Update Translation Files

To get the newest translation JSON files from your project, run:

npx nts update

Variables

  1. On the website, use the {{variable}} pattern. For example: Hi, {{name}}.
  2. In your Next.js project, use the t function:
    import { t } from "@locanext/nts";
    const greeting = t(dictionary.greeting, { name: "John" }); // typed variables

Typings are refreshed every time you run npx nts update.


How It Works

The system has two parts that work together:

  • 🖥 Web app: locanext.com — manage your translation files with an easy interface for editing JSON, working as a team, and organizing content. You can add, remove, move, and change translations and keys with a few clicks.
  • 🧰 nts tool — helps developers download the latest translation files and use them in a Next.js project.

For more details, visit locanext.com/docs