UNPKG

@pelag/nts

Version:

Creation and support of the multilingual project Next.js

70 lines (42 loc) 1.79 kB
# nts **Multilingual Next.js made easy.** The **nts** package works together with the [Next Translator](https://next-translator.com) 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. --- ## Quick Start: New Project 1. Go to [next-translator.com](https://next-translator.com) and create a new project. 2. Create a Next.js project with translation support: ```bash npx @pelag/nts create ``` --- ## Quick Start: Existing Project If you already have a Next.js project: 1. Go to [next-translator.com](https://next-translator.com) and create a project. 2. Install the nts package: ```bash npm i @pelag/nts ``` 3. Set up the configuration: ```bash npx nts init ``` 4. Download the latest translations: ```bash npx nts update ``` --- ## Update Translation Files To get the newest translation JSON files from your web project, run: ```bash npx @pelag/nts update ``` --- ## How it works The system includes two parts that work together: * 🖥 **The web app [next-translator.com](https://next-translator.com)** is where you manage your translation files. It gives you an easy and clear interface for editing JSON, working as a team, and organizing your content. You can add, remove, move, and change translations and keys with just a few clicks. * 🧰 **The nts tool** is for developers. It helps you download the latest translation files from the server and use them in your Next.js project. For more details, visit [next-translator.com/docs](https://next-translator.com/docs)