intl-pipeline
БесплатноБез исполняемых скриптовНе проверенUse when working on the translation pipeline (`src/scripts/intl-pipeline/`), the post-import sanitizer (`intl-sanitizer.ts`), the `intl/pending-*` branches…
от ethereum★ 6 005 звёзд на GitHubОб этом скилле
intl-pipeline
LLM-based, manifest-driven, incremental translation pipeline for ethereum.org. Translates English content (markdown in public/content/, JSON UI strings in src/intl/en/) into 24 target languages via Gemini — reached either directly or through OpenRouter (LLM_PROVIDER), whose keys carry a server-side spend limit — with a post-import sanitizer normalizing common artifacts. The workflow is manual-dispatch only; the daily cron was removed after a run billed $1,108 unattended (references/runbooks/cost-guard-tripped.md). ETHGlossary is the authoritative source for all Ethereum-ecosystem term translations consumed by the pipeline. Read this file fully on activation; pull from references/ only when the listed trigger applies.
The Core Rule: Don't Hand-Propagate English Changes
The single highest-leverage habit for keeping translations correct: never hand-edit translated content to reflect an English change. The pipeline tracks state via manifests (.manifests/{destPath}/source.json + translation.json per file+locale); hand-edits that follow an English change desynchronize the manifest from reality, and the next pipeline run either re-translates over your edit or produces merge conflicts.
The rule is NOT "never edit locales." It IS "don't hand-propagate English updates":
- Allowed: Fixing a translation error when the English side hasn't moved (review-time corrections, sanitizer follow-ups). The manifest's English-to-locale map stays valid.
- Not allowed: Editing a locale to reflect a new English value (URL change, attribute change, restructured paragraph). The manifest map becomes wrong.
- If English-to-locale sync is genuinely urgent: run the pipeline on just that file (
target_path).stamp_only: trueis not a sync: it rewritessource.jsonfrom current English for pairs whose English changed and touches no locale file, so any locale you didn't fix by hand stays stale while its manifest claims it is current. Use it only after hand-fixing every affected locale, with nointl/pending-{base}branch open; procedure inreferences/non-english-edits.md.
Deletions go through English too. To remove a string — including an orphaned key code no longer references — delete it from the English source only; the pipeline propagates the removal on its next run. Hand-deleting the locale copies is hand-propagation.
Top Rules
- ETHGlossary is canonical for term translations. Brand names, people's names, programming languages, OS/platform names, concept terms — all live in ETHGlossary. Don't maintain parallel term banks. The pipeline queries the API via
GLOSSARY_API_URL(default insrc/scripts/intl-pipeline/config.ts). One policy override: software, company and tool names whose glossary form is not the English name reach the prompt as keep-Latin, except a short list of official Chinese brand names (references/ethglossary.md). - One translation PR at a time per base branch. The pipeline commits to
intl/pending-{base}(e.g.,intl/pending-dev). Subsequent runs merge{base}into pending first, then translate the delta. Parallel translation PRs against the same base will conflict. - The pipeline only targets
devin production. Hot fixes tostaging/mastergo out English-only and catch up via prepare-release. Don't translate againststaging/masterunless you have a specific reason and use a customtarget_branch. - Manifests are inseparable from their locale file. Each translated file has two manifests, centralized under
.manifests/{destPath}/:source.jsonandtranslation.json. Delete one, you must regenerate both — easiest via the pipeline infullmode for that file+locale. Never hand-edit a manifest. - The sanitizer runs post-translation, not pre. Its job is to fix Gemini-introduced artifacts (BiDi mistakes, code-fence drift, brand-name mistranslations). It receives translation outputs, never English source.
- Don't add transliteration data here. All term/brand/person transliteration policy lives in ETHGlossary's
docs/translation-policy.mdand per-language entries. The intl-pipeline consumes; it does not author. - Sanitizer fixes must split on code blocks first. Every text transformation in
intl-sanitizer.tsMUST start with the code-block split pattern. Modifying code-fence contents breaks Solidity / Python / TypeScript examples in tutorials. - An untagged code fence is code. Fence bodies never reach the model; only a prose-tagged fence (
```text,txt,md,markdown,mdx--PROSE_FENCE_TAGSinlib/shared-patterns.ts) is translatable. To make a fence's prose translatable, tag it```textin the English source.code-fence-contentfails any other fence whose body drifts from English, comments excepted. - Pipeline failures are not always pipeline bugs. A "translation looks wrong" report may be: bad Gemini output (file upstream), missing ETHGlossary term (add t
Установить intl-pipeline в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл intl-pipeline?
Use when working on the translation pipeline (`src/scripts/intl-pipeline/`), the post-import sanitizer (`intl-sanitizer.ts`), the `intl/pending-*` branches, the `intl-pipeline.yml` GitHub Actions workflow, ETHGlossary integration, or any translation-related issue (broken translations, missing locales, manifest drift, sanitizer false positives, ETHGlossary term lookups, language-group transliteration questions). Provides the manifest-driven incremental pipeline mental model, the "don't hand-propagate" rule, recovery procedures, the ETHGlossary-as-canonical-source policy, and the `intl/pending-{base}` orchestration contract.
Как установить скилл intl-pipeline?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл intl-pipeline запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub