From 3da0c9ccef6e92c533973702c0e183c03326ad87 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Wed, 8 Jun 2022 00:45:44 +0800 Subject: [PATCH] fix: revert i18n usage --- src/Heatmap.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Heatmap.tsx b/src/Heatmap.tsx index 63e498a..c542f0c 100644 --- a/src/Heatmap.tsx +++ b/src/Heatmap.tsx @@ -20,7 +20,6 @@ import { parseJournalDate, useCurrentJournalDate, } from "./utils"; -import { t } from "./translate"; function ErrorFallback({ error }: FallbackProps) { return ( @@ -128,10 +127,7 @@ const getTooltipDataAttrs = (value: Datum) => { // Configuration for react-tooltip const count = value.count === 0 ? "No" : value.count; return { - "data-tip": t("tooltip_hint", { - count, - originalName: value.originalName, - }), + "data-tip": `${count} journal blocks on ${value.originalName}`, }; }; @@ -188,8 +184,8 @@ const HeatmapChart = ({ }} />
- {t('total_status_bottom')} - + Total journal blocks during this period:{" "} + {new Intl.NumberFormat().format(totalBlocks)}