Skip to content

Commit 895a4ff

Browse files
committed
fix: migrate adev app patches
1 parent ebc5da2 commit 895a4ff

File tree

3 files changed

+87
-84
lines changed

3 files changed

+87
-84
lines changed

Diff for: tools/adev-patches/localize-home.patch

+53-78
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,57 @@
1-
diff --git a/adev/src/app/features/home/home.component.html b/adev/src/app/features/home/home.component.html
2-
index 53d930d66d..732d40ec53 100644
3-
--- a/adev/src/app/features/home/home.component.html
4-
+++ b/adev/src/app/features/home/home.component.html
5-
@@ -3,8 +3,8 @@
6-
<div class="adev-top-content">
7-
<!-- Banner(s) can be edited here! -->
8-
<a href="https://blog.angular.dev/meet-angular-v19-7b29dfd05b84" class="adev-banner" target="_blank">
9-
- <h1 tabindex="-1">Angular v19 is here!</h1>
10-
- <p class="adev-banner-cta">Read about our newest release.</p>
11-
+ <h1 tabindex="-1">Angular v19 が利用可能です!</h1>
12-
+ <p class="adev-banner-cta">今すぐ開発者向けイベントを見よう!</p>
1+
diff --git a/adev/src/app/features/home/components/home-animation/home-animation.component.html b/adev/src/app/features/home/components/home-animation/home-animation.component.html
2+
index a599d9eefa..75a23c7b6e 100644
3+
--- a/adev/src/app/features/home/components/home-animation/home-animation.component.html
4+
+++ b/adev/src/app/features/home/components/home-animation/home-animation.component.html
5+
@@ -6,13 +6,13 @@
6+
class="adev-banner"
7+
target="_blank"
8+
>
9+
- <h1 tabindex="-1">Angular v19 is here!</h1>
10+
- <p class="adev-banner-cta">Read about our newest release.</p>
11+
+ <h1 tabindex="-1">Angular v19 が利用可能です!</h1>
12+
+ <p class="adev-banner-cta">最新リリースについて読む</p>
13+
</a>
14+
<div class="learn-angular">
15+
<a [routerLink]="ctaLink" class="adev-cta">
16+
<button class="docs-primary-btn" [attr.text]="'Learn Angular'" aria-label="Learn Angular">
17+
- Learn Angular
18+
+ Angular を学ぶ
19+
</button>
1320
</a>
14-
</div>
21+
<div class="adev-arrow"></div>
22+
@@ -99,9 +99,9 @@
23+
24+
<!-- Works at any scale -->
25+
<div adevAnimationLayer layerId="works-at-any-scale" class="works-at-any-scale-layer layer">
26+
- <h2>Works at any scale</h2>
27+
+ <h2>あらゆる規模で機能する</h2>
28+
<p>
29+
- Angular lets you start small on a well-lit path and supports you as your team and apps grow.
30+
+ Angularなら見通しのいい道から小さくスタート。チームやアプリの成長に合わせてサポートします。
31+
</p>
1532
</div>
16-
@@ -72,10 +72,10 @@
17-
<div class="adev-scale-text">
18-
<div class="adev-scale-container">
19-
<div class="adev-scale-wrapper">
20-
- <h2>Works at any scale</h2>
21-
+ <h2>あらゆる規模で機能する</h2>
22-
<p>
23-
- Angular lets you start small on a well-lit path and supports you as your team and apps
24-
- grow.
25-
+ Angularなら見通しのいい道から小さくスタート。
26-
+ チームやアプリの成長に合わせてサポートします。
27-
</p>
28-
</div>
29-
</div>
30-
@@ -85,10 +85,9 @@
31-
<div class="adev-lines-text">
32-
<div class="adev-lines-container">
33-
<div class="adev-lines-wrapper">
34-
- <h2>Loved by millions</h2>
35-
+ <h2>数百万人に愛される</h2>
36-
<p>
37-
- Join the millions of developers all over the world building with Angular in a thriving
38-
- and friendly&nbsp;community.
39-
+ 世界中の数百万人のAngular開発者たちと活発でフレンドリーなコミュニティに参加しよう。
40-
</p>
41-
</div>
42-
</div>
43-
@@ -99,12 +98,11 @@
44-
<div class="adev-build-container">
45-
<div class="adev-build-wrapper">
46-
<h2>
47-
- Build for everyone
48-
- <div class="adev-gradient" aria-hidden="true">Build for everyone</div>
49-
+ すべての人のために
50-
+ <div class="adev-gradient" aria-hidden="true">すべての人のために</div>
51-
</h2>
52-
<p>
53-
- Rely on Angular's built-in hydration, internationalization, security, and accessibility
54-
- support to build for everyone around the world.
55-
+ Angularに組み込まれたハイドレーション、国際化、セキュリティ、アクセシビリティのサポートを利用して、世界中すべての人のための開発を。
56-
</p>
57-
</div>
58-
</div>
59-
@@ -112,10 +110,9 @@
60-
<div class="adev-build-webgl-text" aria-hidden="true">
61-
<div class="adev-build-container">
62-
<div class="adev-build-wrapper">
63-
- <h2>Build for everyone</h2>
64-
+ <h2>すべての人のために</h2>
65-
<p>
66-
- Rely on Angular's built-in hydration, internationalization, security, and accessibility
67-
- support to build for everyone around the world.
68-
+ Angularに組み込まれたハイドレーション、国際化、セキュリティ、アクセシビリティのサポートを利用して、世界中すべての人のための開発を。
69-
</p>
70-
</div>
71-
</div>
72-
@@ -133,8 +130,8 @@
33+
34+
@@ -124,19 +124,17 @@
35+
36+
<!-- Loved by millions -->
37+
<div adevAnimationLayer layerId="loved-by-millions" class="loved-by-millions-layer layer">
38+
- <h2>Loved by millions</h2>
39+
+ <h2>数百万人に愛される</h2>
40+
<p>
41+
- Join the millions of developers all over the world building with Angular in a thriving and
42+
- friendly community.
43+
+ 世界中の数百万人のAngular開発者たちと活発でフレンドリーなコミュニティに参加しよう。
44+
</p>
45+
</div>
46+
47+
<!-- Build for everyone -->
48+
<div adevAnimationLayer layerId="build-for-everyone" class="build-for-everyone-layer layer">
49+
- <h2 class="title">Build for everyone</h2>
50+
+ <h2 class="title">すべての人のために</h2>
51+
<p>
52+
- Rely on Angular's built-in hydration, internationalization, security, and accessibility
53+
- support to build for everyone around the world.
54+
+ Angularに組み込まれたハイドレーション、国際化、セキュリティ、アクセシビリティのサポートを利用して、世界中すべての人のための開発を。
55+
</p>
7356
</div>
74-
<div class="adev-arrow"></div>
75-
<a routerLink="{{ctaLink}}" class="adev-cta">
76-
- <button class="docs-primary-btn" [attr.text]="'Learn Angular'" aria-label="Learn Angular">
77-
- Learn Angular
78-
+ <button class="docs-primary-btn" [attr.text]="'Angularを学びましょう'" aria-label="Angularを学びましょう">
79-
+ Angularを学びましょう
80-
</button>
81-
</a>
8257
</div>

Diff for: tools/adev-patches/replace-canonical-host.patch

+31-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,43 @@ index ac27b818c4..9b34429ee9 100644
1313
* Information about the deployment of this application.
1414

1515
diff --git a/adev/src/index.html b/adev/src/index.html
16-
index f6d4c0eb48..d0087eaf2a 100644
16+
index 4b15ccb87c..923c9e1799 100644
1717
--- a/adev/src/index.html
1818
+++ b/adev/src/index.html
1919
@@ -58,7 +58,7 @@
2020
<link rel="manifest" href="/assets/icons/site.webmanifest" />
2121
<link rel="mask-icon" href="/assets/icons/safari-pinned-tab.svg" color="#e90464" />
2222
<link rel="shortcut icon" href="/assets/icons/favicon.ico" />
23-
- <link rel="canonical" href="https://angular.dev">
24-
+ <link rel="canonical" href="https://angular.jp">
23+
- <link rel="canonical" href="https://angular.dev" />
24+
+ <link rel="canonical" href="https://angular.jp" />
2525

2626
<meta name="apple-mobile-web-app-title" content="Angular" />
2727
<meta name="application-name" content="Angular" />
28+
@@ -68,23 +68,23 @@
29+
30+
<!-- Open Graph / Facebook -->
31+
<meta property="og:type" content="website" />
32+
- <meta property="og:url" content="https://angular.dev/" />
33+
+ <meta property="og:url" content="https://angular.jp" />
34+
<meta property="og:title" content="Angular" />
35+
<meta
36+
property="og:description"
37+
content="The web development framework for building modern apps."
38+
/>
39+
- <meta property="og:image" content="https://angular.dev/assets/images/ng-image.jpg" />
40+
+ <meta property="og:image" content="https://angular.jp/assets/images/ng-image.jpg" />
41+
42+
<!-- Twitter -->
43+
<meta property="twitter:card" content="summary_large_image" />
44+
- <meta property="twitter:url" content="https://angular.dev/" />
45+
+ <meta property="twitter:url" content="https://angular.jp/" />
46+
<meta property="twitter:title" content="Angular" />
47+
<meta
48+
property="twitter:description"
49+
content="The web development framework for building modern apps."
50+
/>
51+
- <meta property="twitter:image" content="https://angular.dev/assets/images/ng-image.jpg" />
52+
+ <meta property="twitter:image" content="https://angular.jp/assets/images/ng-image.jpg" />
53+
54+
<!-- Fonts -->
55+
<link

Diff for: tools/adev-patches/replace-version-links.patch

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ index fcb60cbd77..f59ab93291 100644
1010
+ aDevVersionsLinkPattern: 'https://{{prefix}}{{version}}angular.jp',
1111
aioVersions: [
1212
{
13-
version: 'v17',
14-
url: 'https://v17.angular.io/docs',
13+
version: 'v18',
14+
url: 'https://v18.angular.dev/overview',
1515
},
1616
{
17-
version: 'v16',
17+
version: 'v17',
1818
diff --git a/adev/src/app/core/services/version-manager.service.ts b/adev/src/app/core/services/version-manager.service.ts
1919
index 3da3517a8f..a2d80ea740 100644
2020
--- a/adev/src/app/core/services/version-manager.service.ts

0 commit comments

Comments
 (0)