← 全部工具

gtx-cli

热度 65 更新于 开发与构建

CLI tool for AI-powered i18n (wrapper for gt)

npmauto-collected

安装

npm
npm install -g gtx-cli

通过 npm 安装。

<div align="center" <a href="https://generaltranslation.com" <picture <source media="(prefers-color-scheme: dark)" srcset="https://generaltranslation.com/brand/gt-logo-dark.svg" <img alt="General Translation" src="https://generaltranslation.com/brand/gt-logo-light.svg" height="64" </picture </a <h1General Translation</h1

<a href="https://generaltranslation.com"<img alt="General Translation" src="https://img.shields.io/badge/MADE%20BY%20General%20Translation-000000.svg?style=for-the-badge&labelColor=ffffff&color=000000"</a <a href="https://www.npmjs.com/package/gt-next"<img alt="NPM version" src="https://img.shields.io/npm/v/gt-next.svg?style=for-the-badge&labelColor=000000&color=CB3837"</a <a href="https://github.com/generaltranslation/gt/blob/main/LICENSE.md"<img alt="License" src="https://img.shields.io/npm/l/gt-next.svg?style=for-the-badge&labelColor=000000&color=FAEBD7"</a <a href="https://discord.gg/W99K6fchSu"<img alt="Join the community on Discord" src="https://img.shields.io/badge/Join%20the%20community-5865F2.svg?style=for-the-badge&logo=discord&labelColor=23272A&logoWidth=20"</a

</div

Getting Started

npx gt@latest

General Translation is a fully integrated suite of internationalization (i18n) tools for React apps. Translate entire React components—not just strings—with a simple <T wrapper. No refactoring into dictionaries. Just write your content and let GT handle the rest.

  • Visit our documentation to get started.
  • Create a free API key at generaltranslation.com.

Documentation

Visit https://generaltranslation.com/docs to view the full documentation.

Packages

| Package | Description | | ------------------------------------------------------------------- | ------------------------------------------------- | | gt-next | Automatic i18n for Next.js | | gt-react | Automatic i18n for React | | gt-i18n | Pure JavaScript i18n library | | gt | CLI tool for continuous localization | | gt-sanity | Plugin for Sanity Studio v3 | | locadex | AI agent for automating i18n in complex codebases | | generaltranslation | Core TypeScript library (internal) | | @generaltranslation/compiler | Build plugin for webpack, Vite, Rollup, esbuild | | @generaltranslation/mcp | MCP server for General Translation | | @generaltranslation/react-core-linter | ESLint plugin for React Core integration |

Quick Start

Run the setup wizard:

npx gt@latest

Or use Locadex to set your project up for you.

Community

The team can be found on Discord where you can ask questions, voice ideas, and share your projects.

You can also open discussions on GitHub.