From fca1bccda3ca943ee12dd32a92fb82e5426552b8 Mon Sep 17 00:00:00 2001 From: NickFR <20896232+nmathey@users.noreply.github.com> Date: Fri, 6 Sep 2024 10:00:53 +1100 Subject: [PATCH] [WIP] Translation: desktop-client/src/components/budget/BudgetTotals.tsx (#3367) * i18 translation * realease note * translate 'arial-label' text * translate 'text' * fixing 'text' translation * component for HTML tag * Lint --------- Co-authored-by: Julian Dominguez-Schatz --- .../src/components/budget/BudgetTotals.tsx | 14 +++++++++----- upcoming-release-notes/3367.md | 6 ++++++ 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 upcoming-release-notes/3367.md diff --git a/packages/desktop-client/src/components/budget/BudgetTotals.tsx b/packages/desktop-client/src/components/budget/BudgetTotals.tsx index 65c2dff9abf..fa3e348b28f 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, Trans } 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,11 +56,13 @@ export const BudgetTotals = memo(function BudgetTotals({ WebkitUserSelect: 'none', }} > - Category + + Category +