Skip to content

chore: update origin to fa546f382d (Angular v22)#1169

Open
lacolaco wants to merge 59 commits into
angular:mainfrom
lacolaco:update-origin-fa546f382d
Open

chore: update origin to fa546f382d (Angular v22)#1169
lacolaco wants to merge 59 commits into
angular:mainfrom
lacolaco:update-origin-fa546f382d

Conversation

@lacolaco
Copy link
Copy Markdown
Collaborator

@lacolaco lacolaco commented Jun 4, 2026

Summary

upstream angular/angular を Angular v22.0.0 (本番 angular.dev 稼働 commit: fa546f382d) に追従。1028 commits / adev/ 配下 440 files の差分を 52 commits に分解して取り込む、過去最大規模のメジャー版同期。

Migration breakdown

Toolchain

  • Node 22.12.0 → 22.22.2 / pnpm 10.15.0 → 10.34.1

Origin sync

  • chore: update origin to fa546f382d
  • fix: migrate untranslated files (新規 4 件 + 既存未翻訳 22 件)
  • chore: remove pages deleted upstream — upstream で削除されたページを adev-ja からも削除 (11 件)
  • chore: preserve removed page translations as .md.bak — そのうち翻訳済み 8 件は将来再利用のため .md.bak で保護

upstream で削除されたページの移動先と .md.bak 取り扱い

旧ファイル upstream 削除 commit 移動先 .md.bak の用途
guide/pipes/{overview, change-detection, precedence, template, transform-data, unwrapping-data-observables}.md (6 件) e6c14f9443 "remove old pipes docs (#60996)" — "replaced by pipes entry in the template guides" guide/templates/pipes.md (adev-ja で翻訳済み) 概念説明の引き写し参考。templates/pipes.md の補強用
guide/di/dependency-injection-providers.md f321e226bd "update dependency injection guides (part 1) (#63652)" guide/di/defining-dependency-providers.md (919行、本PRで未翻訳) + creating-and-using-services.md 新ページ翻訳の出発点として実用
guide/aria/radio.md 8b59653788 "add draft of aria component guides" 廃止 (移動先なし) アーカイブのみ
cli/index.md / reference/migrations/typed-forms.md / reference/migrations/module-with-providers.md (未翻訳 3 件) (翻訳なし、保護対象外)

新規ページの翻訳 (本 PR 内)

v22 の目玉トピックを優先翻訳:

  • events/v22.md — v22 リリースイベントページ
  • ai/webmcp.md — WebMCP (実験的)
  • guide/di/lazy-loading-services.mdinjectAsync

未翻訳のまま取り込み (別 PR で逐次翻訳予定):

  • guide/signals/debounced.md / reference/errors/NG8023.md / reference/errors/NG8024.md / tutorials/playground/5-aria-accordion/config.json

Markdown 移行 (Phase 3)

classify-md-diff.ts で 63 files を a/b/c/d に分類し、41 batches を (class, directory) 単位で並列処理 + verify (verify-migration.ts + verify-codeblock-sync.ts) を経て commit。

  • class-a/b/c: 通常 migration
  • class-d (19 件) を additive (11) / structural (8) に sub-classification
    • structural defer: accordion / autocomplete / combobox / multiselect / select / tree (aria 6 件) / creating-and-using-services / hierarchical-dependency-injection (di 2 件) は prior JP translation を .md.bak として保存しつつ .md を upstream English に置き換え。別 PR で再翻訳が必要
    • additive: aria/grid/listbox/menu/menubar/tabs/toolbar (Testing セクション挿入) / forms/signals/field-state-management (6 hunks) / directives/directive-composition-api (Host directive de-duplication セクション追加)
  • roadmap: 専用 agent で Completed projects 履歴を蓄積

Source-code 移行 (Phase 4)

5 files (ts/html) を (class, directory) 単位で migration。class-d なし (escalate 不要)。

  • 特筆: update/recommendations.ts に v22 step 33 件を追加 (翻訳済み)

Patch 修正 (Phase 5)

  • replace-header-canonical-host — upstream InjectableService rename + import 並び替えに追従
  • translate-tutorial-label — upstream tutorial.component.ts の import 順並び替えに追従
  • replace-version-links — upstream に v22 エントリ追加されたため、Angular.jp 対象を v21 → v22 に切替 (devmode currentDocsVersion + versions.json URL)

既存 drift の補正

  • guide/components/programmatic-rendering.md — 既存翻訳の line-count drift を fix
  • guide/forms/signals/field-state-management.md — sub-agent の code-block コメント mirror 漏れを fix

未対応事項 (別 PR で対応)

  • .md.bak が残った class-d structural defer 8 件 (aria 6 + di 2) の再翻訳
  • 削除済み旧 pages から残した .md.bak 8 件: 特に dependency-injection-providers.md.bakdefining-dependency-providers.md の翻訳元ネタとして活用
  • 本 PR で未翻訳の 4 件の翻訳
  • Algolia indexName (angular_jp_v19) の運用判断 — 本 PR では既存固定値を維持

Test plan

  • pnpm test (全 patch apply OK)
  • pnpm lint (textlint clean)
  • verify-migration.ts adev-ja/src (299 files OK)
  • verify-codeblock-sync.ts main (66 changed files OK)

lacolaco added 30 commits June 4, 2026 09:27
…4.1)

angular/angular v22.0.0 が利用する Node.js / pnpm に揃える。
- .node-version: 22.12.0 → 22.22.2
- packageManager: pnpm@10.15.0 → pnpm@10.34.1
Angular v22 リリースイベントページの日本語翻訳と英語スナップショットを追加。
WebMCP (Web Model Context Protocol) の日本語翻訳と英語スナップショットを追加。
injectAsync を使ったサービスの遅延読み込みガイドの日本語翻訳と英語スナップショットを追加。
lacolaco added 29 commits June 4, 2026 10:21
- replace-header-canonical-host: upstream renamed Injectable → Service and reordered imports.
- translate-tutorial-label: upstream reordered tutorial.component.ts imports around line 50.
- replace-version-links: upstream now has v22 entry in versions.json; flip Angular.jp override target from v21 to v22 (devmode currentDocsVersion + versions.json URL).
upstream (cea6588bb3..fa546f382d) で削除されたページを adev-ja からも削除。
update-origin.ts は copy のみで cleanup しないため取り残されていた。

- guide/di/dependency-injection-providers (+ .en.md)
- guide/pipes/* (overview / unwrapping-data-observables / transform-data /
  precedence / change-detection / template, 計6件 + .en.md)
- guide/aria/radio (+ .en.md)
- 未翻訳: cli/index.md, reference/migrations/typed-forms.md,
  reference/migrations/module-with-providers.md
upstream で削除された 8 ページの既存日本語訳を、将来の参考のため
class-d structural defer と同様に .md.bak として残す。
.en.md (英語スナップショット) は upstream に対応原本がないので削除維持。

- guide/di/dependency-injection-providers.md.bak
- guide/pipes/{overview, unwrapping-data-observables, transform-data,
  precedence, change-detection, template}.md.bak (6 件)
- guide/aria/radio.md.bak
過去 commit で structural defer 扱いとした以下を、実 diff (sections 削除 0 もしくは ≤2 件の near-additive) を再評価して additive に訂正:
- accordion (panelId→panel rename + Testing section 追加)
- autocomplete (rebuild API tables + Signal Forms Integration + Testing)
- multiselect (Popup/Widget directives 追加 + Listbox Inputs 拡張 + Testing)
- select (Listbox Inputs + Popup/Widget Directives + Testing)
- tree (TreeGroup→TreeItemGroup + Testing)

既存翻訳を .md.bak から復元し、新規セクションは英語のまま挿入。
combobox のみは本当の structural change (h2 1件 + h3 4件 削除) のため defer 維持。
過去 commit で structural defer 扱いとした以下を、実 diff (sections 削除 0) を再評価して additive に訂正:
- creating-and-using-services (@Injectable@service prose + 新 "Using the @service decorator" section)
- hierarchical-dependency-injection (純粋な @Injectable@service token rename)

既存翻訳を .md.bak から復元し、新規セクションは英語のまま挿入、@service rename は mirror。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant