Skip to content
cccskills
FreePublished on GitHub

i18n-translate

Translate selected FastGPT interface text files from Simplified Chinese into every supported target locale. Check product terminology and interface context, preserve JSON structure and placeholders, and validate the translated files for consistency.

OriginalShow the original 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.

See how to install

Good for

  • Translating a selected interface text file into all supported locales
  • Updating several translation files together
  • Translating every namespace from completed Chinese source text
  • Checking terminology, variables, and translation file structure

Files included (5)

  • SKILL.md5.1 KB
  • agents/openai.yaml289 B
  • references/fastgpt-glossary.json16.3 KB
  • references/translation-guidelines.md4.7 KB
  • scripts/validate-namespace.mjs10.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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 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

  • Read the complete Chinese source and every existing target file.
  • Use rg to find how the same product concept is translated elsewhere in packages/web/i18n/en/.
  • Inspect call sites for ambiguous labels, actions, state names, errors, or placeholders. Determine whether the text is a button, heading, status, description, toast, or validation message.
  • Follow this evidence order: the FastGPT glossary; feature behavior and UI context; nearby translation style; official n8n or Dify English product language; general technical usage.
  • Match the longest glossary term first. A compound such as 知识库引用 overrides the separate entries for 知识库 and 引用.
  • Treat forbidden glossary translations as errors. If a needed FastGPT product concept is missing from the glossary, report it instead of inventing a new canonical term.
  • Never copy competitor terminology merely because it exists. If evidence still conflicts, pause and ask the user about the specific term.

3. Translate locale by locale

  • Keep JSON keys, nesting, key order, value types, and formatting aligned with the Chinese source.
  • Preserve interpolation variables such as {{name}}, rich-text tags such as <bold>, URLs, literal escape sequences, and intentional line breaks exactly.
  • Align each target's key set with the Chinese source. Remove a target-only key only after confirming it is absent from the complete source file; do not infer from a partial snippet.
  • For en, write concise, natural North American product English. Translate intent rather than syntax, use sentence case by default, and favor familiar product terms over literal Chinese constructions.
  • For zh-Hant, write region-neutral, natural Traditional Chinese rather than applying blind character conversion. Prefer established repository terminology when regional variants differ.
  • For future locales, use native product language for that locale. If reliable translation is not possible, pause before editing and ask whether to omit that locale or wait for a qualified reviewer; do not silently deliver a partial locale set.
  • Reuse one translation for one product concept unless the UI context genuinely changes its meaning.
  • When the same term is inconsistent outside the specified namespace, report the finding but do not modify another namespace without the user's approval.

4. Validate before finishing

Run the bundled validator from the repository root:

node .agents/skills/system/i18n-translate/scripts/validate-namespace.mjs \
  packages/web/i18n/zh-CN/<namespace>.json

For all, run the validator once for every source namespace and require every run to finish with zero errors and zero warnings.

Then:

  • Format only the changed namespace JSON files with the repository formatter.
  • Run the validator again after formatting.
  • Review git diff -- <source-and-target-files> for mistranslation, accidental key changes, stale values, inconsistent capitalization, and unrelated edits.
  • Search the English target for untranslated Han text. Treat valid Chinese brand names or user-visible examples as reviewed exceptions, not automatic failures.
  • Do not run the full test suite for translation-only changes unless the user requests it or code/configuration outside locale JSON also changed.

Completion response

Report:

  • the namespace and locales translated;
  • files created or updated;
  • validation commands and results;
  • any intentionally retained source-language text or unresolved terminology.

Do not write a separate summary document.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

add-permission

FreeSummary

Integrate new FastGPT resources, such as AgentSkill or Plugin, with permission management. Choose an integration guide based on resource hierarchy and permission inheritance, locate the relevant code, and review a checklist for missing implementation steps.

  • Adding permission support to a new FastGPT resource
  • Choosing an integration path based on permission inheritance
  • Finding code locations for permission definitions and checks
labring/FastGPT29.9KUpdated Oct 16, 2026

api-development

FreeSummary

Develop and review FastGPT APIs with consistent input and output checks, TypeScript types, and OpenAPI documentation. It guides the use of Zod schemas, definitions that describe and validate data, alongside permission checks and reusable structures.

  • Adding a new FastGPT API route
  • Changing API inputs or responses
  • Reviewing API validation and documentation
labring/FastGPT29.9KUpdated Oct 16, 2026

ci-workflow-sync

FreeSummary

Keep FastGPT build and test workflows aligned across GitHub Actions and Forgejo Actions. Adapt registry destinations, credentials, proxy settings, and platform-specific steps so the corresponding workflows support the internal network environment.

  • Synchronizing CI changes across GitHub and Forgejo
  • Adapting image builds for an internal network
  • Checking pull requests for missing workflow updates
labring/FastGPT29.9KUpdated Oct 16, 2026

Retire a FastGPT workflow node while preserving existing workflows. The skill guides changes to templates, execution handlers, and interface references so the node disappears from creation menus but still loads, runs, and displays a replacement notice.

  • Retiring a FastGPT workflow node
  • Hiding a node from creation menus
  • Preserving existing workflows during node retirement
labring/FastGPT29.9KUpdated Oct 16, 2026

doc-i18n

FreeSummary

Translate FastGPT documentation from Chinese into natural English for North American readers. Follow the shared product glossary, preserve document structure and code, synchronize navigation files, and check for missing translations or English pages that need updates.

  • Updating English docs after changes to Chinese pages
  • Translating a specified documentation folder
  • Synchronizing English navigation with translated pages
labring/FastGPT29.9KUpdated Oct 16, 2026

Deploy FastGPT on your own server using its official installation script and Docker Compose, which runs its services together. Check service health and access, investigate deployment problems, and receive the access URL, initial login details, and next steps.

  • Setting up FastGPT on your own server
  • Checking service health after deployment
  • Investigating port conflicts or container startup failures
labring/FastGPT29.9KUpdated Oct 16, 2026

See all skills by labring

Report a problem with this skill