ECC/scripts/lib/install-targets
Claude 71aedad889 feat(installer): add --locale flag for translated docs installation
Adds `--locale <code>` support to the ECC installer so users can install
localized reference docs (agents, commands, skills, rules) into
`~/.claude/docs/<locale>/` alongside the existing English installation.

Changes:
- manifests/install-modules.json: add 8 locale doc modules (docs-ja-JP,
  docs-zh-CN, docs-ko-KR, docs-pt-BR, docs-ru, docs-tr, docs-vi-VN,
  docs-zh-TW), each with kind="docs" and defaultInstall=false
- manifests/install-components.json: add 8 locale: components mapping to
  the new modules
- scripts/lib/install-manifests.js: add locale: family prefix,
  SUPPORTED_LOCALES, LOCALE_ALIAS_TO_COMPONENT_ID (with aliases like
  ja=ja-JP, zh=zh-CN, ko=ko-KR), and listSupportedLocales()
- scripts/lib/install/request.js: add --locale flag to parseInstallArgs(),
  resolve locale alias → component ID in normalizeInstallRequest(), throw
  on unsupported locale codes
- scripts/lib/install-targets/claude-home.js: map docs/<locale>/ source
  paths to ~/.claude/docs/<locale>/ destination (side-by-side, no overwrite
  of English files)
- scripts/install-apply.js: import listSupportedLocales, add --locale
  usage line and available locales list to --help output

Usage examples:
  ./install.sh --locale ja                    # Japanese docs only
  ./install.sh --profile core --locale zh-CN  # core profile + zh-CN docs
  ./install.sh typescript --locale ja         # legacy + locale (errors)
2026-05-17 20:32:52 -04:00
..
antigravity-project.js fix: harden install planning and sync tracked catalogs 2026-03-31 22:57:48 -07:00
claude-home.js feat(installer): add --locale flag for translated docs installation 2026-05-17 20:32:52 -04:00
codebuddy-project.js fix: harden install target filtering and MCP health probes 2026-04-05 13:59:42 -07:00
codex-home.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
cursor-project.js fix: namespace cursor agent installs 2026-04-30 02:19:57 -04:00
gemini-project.js feat: add gemini install target 2026-03-31 15:13:20 -07:00
helpers.js feat: add zed install target 2026-05-17 07:06:49 -04:00
joycode-project.js feat: add JoyCode install target 2026-05-11 11:10:59 -04:00
opencode-home.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
qwen-home.js feat: add Qwen install target 2026-05-11 11:27:46 -04:00
registry.js feat: add zed install target 2026-05-17 07:06:49 -04:00
zed-project.js feat: add zed install target 2026-05-17 07:06:49 -04:00