I18n Translate
Translate one, multiple, or all explicitly requested FastGPT i18next namespace JSON...
Install
npx skills add labring/FastGPT --skill i18n-translate -g -a claude-code -y- Repository
- labring/FastGPT30k
- Category
- Marketing
- Updated
- 3d ago
- License
- See repository
- Context cost
- Lightabout 1,186 tokens
- Runs scripts
- Yes, review before use
What it does
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.
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:
Workflow
1. Resolve and constrain the scope
- Require explicit namespace names, source files, or
allfrom the user. - Resolve a bare namespace such as
apptopackages/web/i18n/zh-CN/app.json. - Resolve
allto every JSON file directly underpackages/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/, excludingzh-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.
