From afd99c5032dde86eba48f92e9b2ee1a2cc915eaf Mon Sep 17 00:00:00 2001 From: NickFR <20896232+nmathey@users.noreply.github.com> Date: Thu, 5 Sep 2024 08:54:27 +1100 Subject: [PATCH] i18 translation --- .../desktop-client/src/components/budget/BudgetTotals.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/desktop-client/src/components/budget/BudgetTotals.tsx b/packages/desktop-client/src/components/budget/BudgetTotals.tsx index 65c2dff9abf..7569583f3b2 100644 --- a/packages/desktop-client/src/components/budget/BudgetTotals.tsx +++ b/packages/desktop-client/src/components/budget/BudgetTotals.tsx @@ -1,4 +1,5 @@ import React, { type ComponentProps, memo, useRef, useState } from 'react'; +import { useTranslation } from 'react-i18next'; import { SvgDotsHorizontalTriple } from '../../icons/v1'; import { theme, styles } from '../../style'; @@ -23,6 +24,7 @@ export const BudgetTotals = memo(function BudgetTotals({ expandAllCategories, collapseAllCategories, }: BudgetTotalsProps) { + const { t } = useTranslation(); const [menuOpen, setMenuOpen] = useState(false); const triggerRef = useRef(null); @@ -54,7 +56,7 @@ export const BudgetTotals = memo(function BudgetTotals({ WebkitUserSelect: 'none', }} > - Category + {t('Category')}