diff --git a/components/indicators/IndicatorHighlightCard.tsx b/components/indicators/IndicatorHighlightCard.tsx index b10a5f8f..f793252a 100644 --- a/components/indicators/IndicatorHighlightCard.tsx +++ b/components/indicators/IndicatorHighlightCard.tsx @@ -94,6 +94,8 @@ type IndicatorHighlightCardProps = { unit?: string; }; +import { useLocale } from 'next-intl'; + function IndicatorHighlightCard({ level, objectid, @@ -103,6 +105,7 @@ function IndicatorHighlightCard({ }: IndicatorHighlightCardProps) { const t = useTranslations(); const plan = usePlan(); + const locale = useLocale(); // FIXME: It sucks that we only use the context for the translation key 'action' const indicatorType = @@ -117,7 +120,7 @@ function IndicatorHighlightCard({ - {typeof value === 'number' ? beautifyValue(value) : '-'} + {typeof value === 'number' ? beautifyValue(value, locale) : '-'} {unit === 'no unit' ? '' : unit}