From 5f4ce10c14e8592c3198701eba6b9b86b6f400cb Mon Sep 17 00:00:00 2001 From: Suguru Inatomi Date: Sat, 27 Sep 2025 13:23:48 +0900 Subject: [PATCH] refactor(build): migrate navigation component translation to git patch - Remove adev-ja navigation.component.html and .en.html files - Add translate-navigation.patch to tools/adev-patches/ - Update tools/update-origin.ts to exclude navigation from localized files - Navigation translations now handled via patch system for better maintainability --- .../navigation/navigation.component.en.html | 529 ------------------ .../navigation/navigation.component.html | 526 ----------------- tools/adev-patches/translate-navigation.patch | 49 ++ tools/update-origin.ts | 1 - 4 files changed, 49 insertions(+), 1056 deletions(-) delete mode 100644 adev-ja/src/app/core/layout/navigation/navigation.component.en.html delete mode 100644 adev-ja/src/app/core/layout/navigation/navigation.component.html create mode 100644 tools/adev-patches/translate-navigation.patch diff --git a/adev-ja/src/app/core/layout/navigation/navigation.component.en.html b/adev-ja/src/app/core/layout/navigation/navigation.component.en.html deleted file mode 100644 index a51fab35c..000000000 --- a/adev-ja/src/app/core/layout/navigation/navigation.component.en.html +++ /dev/null @@ -1,529 +0,0 @@ - -
- -
- - -
- - - - - @if (activeRouteItem() === PAGE_PREFIX.DOCS || activeRouteItem() === PAGE_PREFIX.REFERENCE) { -
- -
- } -
diff --git a/adev-ja/src/app/core/layout/navigation/navigation.component.html b/adev-ja/src/app/core/layout/navigation/navigation.component.html deleted file mode 100644 index 1e4eebb62..000000000 --- a/adev-ja/src/app/core/layout/navigation/navigation.component.html +++ /dev/null @@ -1,526 +0,0 @@ - -
- -
- - -
- - - - - @if (activeRouteItem() === PAGE_PREFIX.DOCS || activeRouteItem() === PAGE_PREFIX.REFERENCE) { -
- -
- } -
diff --git a/tools/adev-patches/translate-navigation.patch b/tools/adev-patches/translate-navigation.patch new file mode 100644 index 000000000..a6540bbe4 --- /dev/null +++ b/tools/adev-patches/translate-navigation.patch @@ -0,0 +1,49 @@ +diff --git a/adev/src/app/core/layout/navigation/navigation.component.html b/adev/src/app/core/layout/navigation/navigation.component.html +index a51fab35c3..8629b0f736 100644 +--- a/adev/src/app/core/layout/navigation/navigation.component.html ++++ b/adev/src/app/core/layout/navigation/navigation.component.html +@@ -234,7 +234,7 @@ + d="M3.645 13.792h6.708v-1.25H3.645v1.25Zm0-3.542h6.708V9H3.645v1.25Zm-2.063 7.083a1.2 1.2 0 0 1-.875-.375 1.2 1.2 0 0 1-.375-.875V1.917a1.2 1.2 0 0 1 .375-.875 1.2 1.2 0 0 1 .875-.375h7.52l4.563 4.562v10.854a1.2 1.2 0 0 1-.375.875 1.2 1.2 0 0 1-.875.375H1.582ZM8.478 5.792V1.917H1.582v14.166h10.833V5.792H8.478Z" + /> + +- Docs ++ ガイド + + + +@@ -255,7 +255,7 @@ + d="m5.668 10-5-5 5-5 1.187 1.188L3.022 5.02l3.813 3.812L5.668 10Zm6.667 0-1.188-1.188L14.98 4.98l-3.812-3.812L12.335 0l5 5-5 5Z" + /> + +- Tutorials ++ 学習 + + + +@@ -270,7 +270,7 @@ + d="M450.001-611.691v-32.386q-39.385-9.923-64.692-41.897-25.308-31.975-25.308-74.025 0-49.922 35.038-84.96 35.039-35.038 84.961-35.038t84.961 35.038q35.038 35.038 35.038 84.96 0 42.05-25.308 74.025-25.307 31.974-64.692 41.897v32.386l273.846 157.538q17.173 9.912 26.663 26.582 9.491 16.671 9.491 36.495v62.152q0 19.824-9.491 36.495-9.49 16.67-26.663 26.582L516.154-111.771q-17.203 9.846-36.217 9.846t-36.091-9.846L176.155-265.847q-17.173-9.912-26.663-26.582-9.491-16.671-9.491-36.495v-62.152q0-19.824 9.491-36.495 9.49-16.67 26.663-26.582l273.846-157.538Zm-6.155 364.537L200-387.461v58.537q0 3.078 1.539 5.962 1.538 2.885 4.615 4.808l267.692 154.692q3.077 1.923 6.154 1.923t6.154-1.923l267.692-154.692q3.077-1.923 4.615-4.808 1.539-2.884 1.539-5.962v-58.537L516.154-247.154q-17.203 9.847-36.217 9.847t-36.091-9.847Zm6.155-162.847V-542.77L250.46-427.691l223.386 128.846q3.077 1.924 6.154 1.924t6.154-1.924l223.001-128.846L509.999-542.77v132.769h-59.998ZM480-699.999q25 0 42.5-17.5t17.5-42.5q0-25-17.5-42.5t-42.5-17.5q-25 0-42.5 17.5t-17.5 42.5q0 25 17.5 42.5t42.5 17.5Zm-2.308 538.46Z" + /> + +- Playground ++ 体験 + + + +@@ -291,7 +291,7 @@ + d="M3.645 13.792h6.708v-1.25H3.645v1.25Zm0-3.542h6.708V9H3.645v1.25Zm-2.063 7.083a1.2 1.2 0 0 1-.875-.375 1.2 1.2 0 0 1-.375-.875V1.917a1.2 1.2 0 0 1 .375-.875 1.2 1.2 0 0 1 .875-.375h7.52l4.563 4.562v10.854a1.2 1.2 0 0 1-.375.875 1.2 1.2 0 0 1-.875.375H1.582ZM8.478 5.792V1.917H1.582v14.166h10.833V5.792H8.478Z" + /> + +- Reference ++ 資料集 + + + +@@ -518,7 +518,7 @@ +