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:
Usage
Command | Description |
---|---|
npx gt-next-cli setup | Step by step setup guide that prepares your project for translation. |
npx gt-next-cli scan | Scans your project for translatable content. Can be used repeatedly to update your project. |
npx gt-next-cli translate | Translates your project via the GT API. |
npx gt-next-cli generate | Generates a new translation data JSON file. Should be used when using the library standalone. |