General Translation  
Next.js CLI Tool

Introduction

Next.js CLI tool

Overview

The gt-next-cli is a command-line interface (CLI) for managing your Next.js application's translations.

Installation

To install gt-next-cli, run the following command:

npm i gt-next-cli

Usage

CommandDescription
npx gt-next-cli setupStep by step setup guide that prepares your project for translation.
npx gt-next-cli scanScans your project for translatable content. Can be used repeatedly to update your project.
npx gt-next-cli translateTranslates your project via the GT API.
npx gt-next-cli generateGenerates a new translation data JSON file. Should be used when using the library standalone.

On this page