Skip to content

chore: update origin to v21.2.10+sha-42d57c3#1163

Merged
lacolaco merged 66 commits intoangular:mainfrom
lacolaco:update-origin-42d57c3
Apr 29, 2026
Merged

chore: update origin to v21.2.10+sha-42d57c3#1163
lacolaco merged 66 commits intoangular:mainfrom
lacolaco:update-origin-42d57c3

Conversation

@lacolaco
Copy link
Copy Markdown
Collaborator

@lacolaco lacolaco commented Apr 29, 2026

Summary

Sync angular-ja with upstream angular/angular @ v21.2.10+sha-42d57c3.

Migration breakdown

  • Phase 2: 25 untranslated .md files migrated (origin snapshot copy)
  • Phase 3 (Markdown): 64 .en.md files in 25 directories
    • class-a (code-only / typo): 3 files
    • class-b (small diff ≤5 lines): 27 files
    • class-c (paragraph-level): 24 files
    • class-d-additive / partial-hybrid (preserve translation, insert/replace only changed sections): 8 files
    • class-d-structural (full defer): 2 files
  • Phase 4 (Source code): 5 .en.{ts,html} files in 3 directories
  • Removed obsolete fix-generate-routes-explicit-id.patch (upstream PR 67201 integrated {#id} natively)

Class-d hybrid restored (translation preserved + new sections handled)

File Pattern Action
guide/security.md +89/-0 Inserted CDN nonce + SSRF blocks in English
guide/forms/form-validation.md +66/-2 Inserted "Managing validators dynamically" in English; -2 were stylistic
guide/forms/reactive-forms.md +30/-8 -8 were stylistic English rewordings; inserted zoneless NOTE + HELPFUL link in English
guide/forms/signals/field-state-management.md +55/-33 Pure-add: Tracking values for array fields; replaced bodies of "Form submission" / "Resetting forms" (API rewrite to FormRoot) with new English
guide/routing/define-routes.md +5/-95 Removed JP counterpart of relocated "Route Loading Strategies" section (moved to loading-strategies.md upstream)
guide/routing/navigate-to-routes.md +77/-0 Inserted navigateToList / relativeTo / browserUrl blocks in English
guide/signals/resource.md +52/-0 Inserted "Resource composition with snapshots" section in English
tools/cli/build.md +50/-18 Builder rename + table cell expansion + lazy bundle example, all translated inline

English-as-is sections in the additive files are flagged for follow-up translation PRs.

Class-d-structural (full re-translation needed)

Existing translations diverge significantly; reset to English with .md.bak backup of the previous translation:

  • adev-ja/src/content/reference/roadmap.md (+66/-71) — Angular goals restructured (added "AI experience"); old roadmap entries replaced
  • adev-ja/src/content/guide/testing/services.md (+127/-72) — Vitest-based rewrite; full re-translation expected

Test plan

  • pnpm test (patches apply cleanly)
  • pnpm lint (textlint passes)
  • verify-migration.ts passes for adev-ja/src/content (299 file pairs)

lacolaco added 30 commits April 29, 2026 12:41
lacolaco added 28 commits April 29, 2026 12:59
Upstream PR 67201 integrated native {#id} support in heading.mts.
The 8 removals were English-only stylistic rewordings; effective change is purely additive (NOTE about zoneless + HELPFUL link).
…artial hybrid

Tracking values for array fields: pure addition (English).
Form submission / reset: existing-section API rewrite (FormRoot directive); replaced JP body with new English.
Removed Japanese translation of the relocated 'Route Loading Strategies' section (moved to loading-strategies.md upstream); preserved remaining translation.
Builder name rename, table cell expansions, and new lazy-loaded bundle section all translated inline.
Replace structural defer with hybrid: preserve previously translated
docs-cards moved into Completed projects (Signal debugging in DevTools,
Improve HMR, Zoneless Angular). Insert new English sections (AI experience,
Compiler, Reactivity, Components, etc.) for follow-up translation. Remove
deleted Future work section. Resolve textlint conjunction/joshi issues
in restored Japanese text.
Special-prefix annotations (IMPORTANT:, TIP:, etc.) at line start are
recognized as docs callouts by the adev build pipeline. Restore the
uppercase English prefix in two files where the annotation had been
translated:
- making-requests.md: Tip: -> TIP:
- 6-next-steps/README.md: 重要: -> IMPORTANT:
…ection.md

The Self example code block was updated upstream to use inject() with
the {self: true} option instead of @self() constructor injection. Mirror
the same change to the JA-side .md so the fenced code blocks stay in
sync.
Fixes surfaced by the new verify-migration.ts structural-marker check
(code-fence / heading / line-prefix-annotation positions must match
between .en.md and .md):

- directives/attribute-directives.md: remove stray blank line that
  shifted the next heading +1; add trailing newline.
- directives/overview.md: same shape — extra blank line before the
  '## Hosting a directive...' heading; add trailing newline.
- image-optimization.md L219: revert spurious 'NOTE:' annotation
  prefix on a JA line whose EN counterpart is plain prose ('Note that
  ...') — the JA was rendering an extra docs callout absent from
  upstream.
@lacolaco lacolaco merged commit c835a65 into angular:main Apr 29, 2026
4 checks passed
@lacolaco lacolaco deleted the update-origin-42d57c3 branch April 29, 2026 13:09
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