Skip to content

Commit

Permalink
WEB-2079 update Meter text tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Ladaria committed Nov 19, 2024
1 parent 7aae091 commit 78d3544
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/meter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div
ref={containerRef}
Expand Down

0 comments on commit 78d3544

Please sign in to comment.