From 833f03aadd028852cc98fb9061c1a6fc173da216 Mon Sep 17 00:00:00 2001 From: Haewon Kam Date: Fri, 11 Sep 2026 11:19:29 +0900 Subject: [PATCH] =?UTF-8?q?refactor(supporters):=20=ED=94=8C=EB=9E=98?= =?UTF-8?q?=EB=84=88=20=ED=9E=88=EC=96=B4=EB=A1=9C=EC=9D=98=20=EC=8B=9C?= =?UTF-8?q?=EC=88=A0=20=EB=AA=A9=EB=A1=9D=C2=B7=EA=B8=B0=EC=A4=80=EC=A0=90?= =?UTF-8?q?=20=EB=AC=B8=EA=B5=AC=EB=A5=BC=20=EB=8D=B0=EC=9D=B4=ED=84=B0(pr?= =?UTF-8?q?ocedures.json=20=EB=9D=BC=EB=B2=A8,=20places.json=20origin)?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=9D=BD=EC=9D=8C=20=E2=80=94=20=EB=B3=91?= =?UTF-8?q?=EC=9B=90=EB=B3=84=20=EC=9D=B4=EC=8B=9D=20=EC=A4=80=EB=B9=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5.1 --- supporters/src/components/Planner.astro | 6 ++++-- supporters/src/data/planStrings.json | 6 ++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/supporters/src/components/Planner.astro b/supporters/src/components/Planner.astro index 9b48796..00c7323 100644 --- a/supporters/src/components/Planner.astro +++ b/supporters/src/components/Planner.astro @@ -16,6 +16,8 @@ const tour = tourToPlaces((lang === 'en' ? TEN : TKO) as any, lang); const nProcs = P.procedures.length; const nPlaces = PL.places.filter((x) => x.category !== 'hotel').length + tour.filter((x) => x.category !== 'hotel').length; const nHotels = PL.places.filter((x) => x.category === 'hotel').length + tour.filter((x) => x.category === 'hotel').length; +const procList = (P.procedures as any[]).map((x) => x.label[lang]).join(lang === 'ko' ? '·' : ', '); +const originLabel = (PL as any).origin?.label?.[lang] ?? ''; ---
@@ -25,8 +27,8 @@ const nHotels = PL.places.filter((x) => x.category === 'hotel').length + tour.fi

{t.title} {t.lede}

-
{nProcs}{t.stat_procs}{t.stat_procs_d}
-
{nPlaces}{t.stat_places}{t.stat_places_d}
+
{nProcs}{t.stat_procs}{procList}
+
{nPlaces}{t.stat_places}{t.stat_places_d.replace('{origin}', originLabel)}
{nHotels}{t.stat_hotels}{t.stat_hotels_d}
0{t.stat_privacy}{t.stat_privacy_d}
diff --git a/supporters/src/data/planStrings.json b/supporters/src/data/planStrings.json index 6200c81..f2d76fe 100644 --- a/supporters/src/data/planStrings.json +++ b/supporters/src/data/planStrings.json @@ -90,9 +90,8 @@ "h_input": "Build Your Schedule", "sub_input": "세 가지만 고르면 일정표가 바로 나옵니다.", "stat_procs": "시술", - "stat_procs_d": "가슴·윤곽·눈·코·지방·리프팅·피부·모발", "stat_places": "추천 장소", - "stat_places_d": "큐레이션과 한국관광공사 TourAPI. 신논현역 기준 거리·이동 시간 표시", + "stat_places_d": "큐레이션과 한국관광공사 TourAPI. {origin} 기준 거리·이동 시간 표시", "stat_hotels": "근처 숙소", "stat_hotels_d": "병원 도보 10분 안, 엘리베이터·룸서비스·24시간 프런트", "stat_privacy": "서버 저장", @@ -207,9 +206,8 @@ "h_input": "Build Your Schedule", "sub_input": "Pick three things and your schedule appears.", "stat_procs": "procedures", - "stat_procs_d": "Breast, contouring, eyes, nose, fat, lifting, skin, hair", "stat_places": "curated places", - "stat_places_d": "Curated picks plus Korea Tourism Organization data, with distance and travel time from Sinnonhyeon Station", + "stat_places_d": "Curated picks plus Korea Tourism Organization data, with distance and travel time from {origin}", "stat_hotels": "hotels nearby", "stat_hotels_d": "Within a 10-minute walk, with elevators, room service and 24-hour desks", "stat_privacy": "stored on servers",