Socket
Book a DemoInstallSign in
Socket

gtx-cli

Package Overview
Dependencies
Maintainers
4
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtx-cli

CLI tool for AI-powered i18n

latest
Source
npmnpm
Version
2.3.1
Version published
Maintainers
4
Created
Source

General Translation

gtx-cli: General Purpose CLI Tool for General Translation

gtx-cli is a command-line tool used to interface with General Translation's AI-powered i18n platform.

See our docs for more information including guides, examples, and API references.

Installation

npm install gtx-cli

Usage

Set up

For more details, check out the setup command documentation.

If you are using gt-react or gt-next, run this command to automatically insert <T> components into your project.

npx gtx-cli setup

Init

For more details, check out the init command documentation.

This command sets up your gt.config.json file. You will need to run this command in order to run the translate command.

npx gtx-cli init

Translation

For more details, check out the translate command documentation.

Before deploying to production, you need to generate translations. First, add your production api keys:

GT_API_KEY=your-production-api-key
GT_PROJECT_ID=your-project-id

Next run the translate command. This will generate translations and either publish them to the CDN or save them in your project depending on your configuration.

npx gtx-cli translate

Documentation

Full documentation, including guides, examples, and API references, can be found at General Translation Docs.

Contributing

We welcome any contributions to our libraries. Please submit a pull request!

Keywords

i18n

FAQs

Package last updated on 13 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts