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