一键导入
translate-locales
Generate extend/en.json, translate it into 19 locales, and merge into main locale JSON files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate extend/en.json, translate it into 19 locales, and merge into main locale JSON files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | translate-locales |
| description | Generate extend/en.json, translate it into 19 locales, and merge into main locale JSON files. |
When the user explicitly invokes this skill (e.g. @translate-locales), follow this 4-step workflow to generate and translate i18n locale files.
packages/i18n and translating them into multiple locales for the DApp.@translate-locales or by name).All shell commands below assume you are in the repo root first, and then inside the packages/i18n directory. Unless otherwise specified, commands are run from packages/i18n.
packages/i18n, run cd packages/i18n. If already in packages/i18n, skip.packages/i18n, run: pnpm generateMissingKeyslocales/extend/en.json in the current packages/i18n directory, containing keys that are empty or invalid in other locales, using the English values from en.json as the translation source. If extend/en.json is empty or only contains {}, skip Steps 3–4 and inform the user that no new keys need translation.Use the generated file packages/i18n/locales/extend/en.json (relative to the repo root, i.e. locales/extend/en.json under packages/i18n) as the translation source. Translate this source file into 19 languages, matching the locales defined in packages/i18n/src/constant.ts except en. Create the output files in packages/i18n/locales/extend/ (the same directory as en.json). If packages/i18n/locales/extend/ already contains locale files with the same names, overwrite those files with the new translated JSON produced in this run (no need to manually clean the directory beforehand).
When asking the current AI to translate, use the prompt in TRANSLATION_PROMPT.md.
In packages/i18n, run: pnpm mergeExtendJson. This merges each locales/extend/<locale>.json into locales/<locale>.json and then deletes the locales/extend/ directory. After a successful run, packages/i18n/locales/extend/ should no longer exist.
packages/i18npnpm generateMissingKeys run; packages/i18n/locales/extend/en.json existspackages/i18n/locales/extend/ with file names exactly matching the locales in packages/i18n/src/constant.ts except en (ar.json, fa.json, he.json, zh.json, ja.json, es.json, ko.json, vi.json, de.json, fr.json, ru.json, id.json, tr.json, it.json, pt.json, uk.json, pl.json, nl.json, tc.json)pnpm mergeExtendJson run successfullypackages/i18n/locales/<locale>.json files updated and packages/i18n/locales/extend/ removedAdd or review RTL compatibility for Orderly Web pages and components. Use this skill whenever the user asks to make a page/component support RTL, Arabic/Farsi/Hebrew, direction switching, mirrored layout, RTL bugs, or compatibility with the feature/rtl implementation in this repository.
Standardizes how to create and expose Orderly Plugin Interceptor Targets with typed props, injectable wiring, and package entry registration. Use when adding a new interceptor target, refactoring a component to be interceptable, or wiring InterceptorTargetPropsMap module augmentation.
Improve TypeScript/JSDoc and extraction metadata feeding apps/ai-docs generators (hooks, components, types)—before or alongside doc-template work.
Implement source-level quality improvements for component and hook docs generated by apps/ai-docs.
Execute MCP Inspector testing workflow for @orderly.network/sdk-docs. Use when user asks to test MCP tools, validate stdio inspector setup, run smoke/regression checks, or troubleshoot MCP JSON parse issues.
Migrates a monorepo sub-package to a standalone package (copy with excludes, then apply config changes).