# I18n Translate

Translate one, multiple, or all explicitly requested FastGPT i18next namespace JSON...

- Repository: https://github.com/labring/FastGPT (29968 stars)
- Category: Marketing
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add labring/FastGPT --skill i18n-translate -g -a claude-code -y`
Codex: `npx skills add labring/FastGPT --skill i18n-translate -g -a codex -y`
Cursor: `npx skills add labring/FastGPT --skill i18n-translate -g -a cursor -y`
Gemini CLI: `npx skills add labring/FastGPT --skill i18n-translate -g -a gemini-cli -y`

## Description

Translate one, multiple, or all explicitly requested FastGPT i18next namespace JSON files from the completed Simplified Chinese source into every supported target locale, with product-language research and structural validation. Use only when the user explicitly invokes `$i18n-translate` and identifies namespace names, files under `packages/web/i18n/zh-CN/`, or all namespaces; never trigger implicitly for ordinary i18n, copywriting, or documentation work.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# FastGPT i18n Namespace Translation

Treat `packages/web/i18n/zh-CN/<namespace>.json` as the semantic and structural source of truth. Translate the specified namespace into all sibling locale directories without changing runtime behavior.

Before translating, read both of these references completely:

- [references/translation-guidelines.md](references/translation-guidelines.md)
- [references/fastgpt-glossary.json](references/fastgpt-glossary.json)

## Workflow

### 1. Resolve and constrain the scope

- Require explicit namespace names, source files, or `all` from the user.
- Resolve a bare namespace such as `app` to `packages/web/i18n/zh-CN/app.json`.
- Resolve `all` to every JSON file directly under `packages/web/i18n/zh-CN/`, sorted by filename.
- Reject a source outside `zh-CN`; ask for the Simplified Chinese source instead.
- Discover target locales from sibling directories under `packages/web/i18n/`, excluding `zh-CN`.
- Edit only the selected namespace files. Create a missing target namespace file when its locale directory already exists, but never create a new locale.
- Preserve unrelated user changes already present in target files.

### 2. Establish product meaning before wording

The rest: https://github.com/labring/FastGPT/blob/HEAD/.agents/skills/system/i18n-translate/SKILL.md
