Skip to content

Commit

Permalink
Adding translation to 'future' label
Browse files Browse the repository at this point in the history
  • Loading branch information
gislawill committed Oct 10, 2024
1 parent 766d9ed commit efb4735
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/Common/Chart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ const Chart = memo(
}));
const futureDatasets = datasets.map(dataset => ({
...dataset,
label: `${dataset.label} (Future)`,
label: t(`${dataset.label} (Future)`),
data: dataset.data.map((point, index) =>
isFutureDate(labels[index] as string) ? point : null,
),
Expand All @@ -319,6 +319,7 @@ const Chart = memo(
datasets,
floodThresholds,
isPastDate,
t,
isFutureDate,
]);

Expand Down

0 comments on commit efb4735

Please sign in to comment.