CLI
NextGlobeGen comes with a Command Line Interface (CLI) tool next-globe-gen. To see all the available commands run the CLI tool with the -h or --help option.
Basic usage
npx next-globe-gen [command] [options]
generate command
The next-globe-gen generate command runs the generator which generates the localized routes, extracts translation keys from source files, and compiles messages for the package. The plugin uses this CLI command internally.
npx next-globe-gen generate [options]
Options
| Option | Description |
|---|---|
-c, --config <path> | custom path to a configuration file (default: `i18n.config.ts) |
-w, --watch | enables watch mode |
--no-routes | skip routes generation |
--no-messages | skip messages compilation |
-h, --help | display help for command |