From 220233e84561d91d212fa3e6be3b5231d3447fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 30 Jun 2026 21:31:45 +0200 Subject: [PATCH] fix(medications): localise the per-schedule dose accent too MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The medication and GLP-1 cards print a per-schedule dose override as a trailing accent ("— 5 mg"), straight from the stored string, so the same raw unit token the main dose carried still showed through there. Run it through formatDose so the per-schedule accent localises like the rest. --- src/components/medications/glp1-medication-card.tsx | 2 +- src/components/medications/medication-card.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/medications/glp1-medication-card.tsx b/src/components/medications/glp1-medication-card.tsx index 8f3b10e43..b36d89ce7 100644 --- a/src/components/medications/glp1-medication-card.tsx +++ b/src/components/medications/glp1-medication-card.tsx @@ -468,7 +468,7 @@ export function Glp1MedicationCard({ {schedule?.dose && ( {" "} - — {schedule.dose} + — {formatDose(schedule.dose, t)} )} diff --git a/src/components/medications/medication-card.tsx b/src/components/medications/medication-card.tsx index 35aff5182..4bdae4b36 100644 --- a/src/components/medications/medication-card.tsx +++ b/src/components/medications/medication-card.tsx @@ -452,7 +452,7 @@ export function MedicationCard({ {s.dose && ( {" "} - — {s.dose} + — {formatDose(s.dose, t)} )}