From 397c74c0c07cb36e4513051b1c6c4d7ca1566430 Mon Sep 17 00:00:00 2001 From: Edward Salter Date: Tue, 23 Apr 2024 12:34:53 +0100 Subject: [PATCH] Add locale number formatting to Rom widget --- src/widgets/romm/component.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/romm/component.jsx b/src/widgets/romm/component.jsx index 1cb3033e0..f73dbe6fa 100644 --- a/src/widgets/romm/component.jsx +++ b/src/widgets/romm/component.jsx @@ -4,6 +4,7 @@ import useWidgetAPI from "utils/proxy/use-widget-api"; export default function Component({ service }) { const { widget } = service; + const { t } = useTranslation(); const { data: response, error: responseError } = useWidgetAPI(widget, "statistics"); @@ -24,8 +25,8 @@ export default function Component({ service }) { const totalRoms = response.reduce((total, stat) => total + stat.rom_count, 0); return ( - - + + ); }