General Translation CLI

CLI

General Translation 的命令行 gt:用向导为 React、Next.js 等项目配置多语言,再把界面文案和 JSON、YAML、Markdown 等内容文件交给平台 AI 翻译并写回项目,可接入 CI。需要 Node.js 项目和 General Translation 账号与 API Key(可免费注册,翻译按用量计费)。

generaltranslation/gt · packages/cli1.1k
在 GitHub 上查看
README

General Translation

Documentation · Report Bug

gt

Command-line tool for General Translation's i18n platform.

Installation

npm install gt --save-dev

Quick Start

Set up your project:

npx gt init

Generate translations:

npx gt translate

See the full documentation for guides and API reference.