From 78d3544d20611d737f1bcb6b24dd5db165b13b5e Mon Sep 17 00:00:00 2001 From: Pedro Ladaria Date: Tue, 19 Nov 2024 12:30:34 +0100 Subject: [PATCH] WEB-2079 update Meter text tokens --- src/meter.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/meter.tsx b/src/meter.tsx index d50228644..ea1cf6a90 100644 --- a/src/meter.tsx +++ b/src/meter.tsx @@ -277,9 +277,10 @@ const MeterComponent = ({ const totalPercent = Math.round((lastSegment?.end || 0) * 100); const valueText = - t(meterTotalLabel, totalPercent) + + t(meterTotalLabel, values.length, totalPercent) + ' ' + - values.map((v, i) => `${t(meterSectionLabel, i + 1, Math.round(v * 100))}`).join(', '); + values.map((v, i) => `${t(meterSectionLabel, i + 1, Math.round(v * 100))}`).join('. '); + return (