refactor(supporters): 플래너 히어로의 시술 목록·기준점 문구를 데이터(procedures.json 라벨, places.json origin)에서 읽음 · 병원별 이식 준비

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Haewon Kam 2026-09-11 11:19:29 +09:00
parent 83b8343262
commit 65fb9be9c6
2 changed files with 6 additions and 6 deletions

View File

@ -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] ?? '';
---
<section class="section dark plan-hero">
<div class="wrap-wide">
@ -25,8 +27,8 @@ const nHotels = PL.places.filter((x) => x.category === 'hotel').length + tour.fi
<p class="lede"><strong>{t.title}</strong> {t.lede}</p>
</div>
<div class="stats">
<div class="stat"><b>{nProcs}</b><span class="label">{t.stat_procs}</span><span class="desc">{t.stat_procs_d}</span></div>
<div class="stat"><b>{nPlaces}</b><span class="label">{t.stat_places}</span><span class="desc">{t.stat_places_d}</span></div>
<div class="stat"><b>{nProcs}</b><span class="label">{t.stat_procs}</span><span class="desc">{procList}</span></div>
<div class="stat"><b>{nPlaces}</b><span class="label">{t.stat_places}</span><span class="desc">{t.stat_places_d.replace('{origin}', originLabel)}</span></div>
<div class="stat"><b>{nHotels}</b><span class="label">{t.stat_hotels}</span><span class="desc">{t.stat_hotels_d}</span></div>
<div class="stat"><b>0</b><span class="label">{t.stat_privacy}</span><span class="desc">{t.stat_privacy_d}</span></div>
</div>

View File

@ -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",