From 3e17719c9122fd335c96cd11a3895eac255187d9 Mon Sep 17 00:00:00 2001 From: Frank Steiler Date: Wed, 8 Jul 2026 12:33:25 +0200 Subject: [PATCH] fix(i18n): resolve add-budget-line aria-label from budget namespace on household items PR #1844 switched the BudgetSection add-line button aria-label to t('budgetLineForm.addBudgetLineAriaLabel'), but t is namespace-switched to householdItems on household item pages where that key does not exist, so the accessible name rendered as the raw i18n key. Resolve it through the always-budget-namespaced tBudget instead. Fixes deterministic E2E failures on household-item-detail.spec.ts (all viewports) and budget/unit-pricing.spec.ts Scenario 3 observed in ad-hoc run 28934922175. Fixes #1857 Co-Authored-By: Claude frontend-developer (Haiku 4.5) --- client/src/components/budget/BudgetSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/budget/BudgetSection.tsx b/client/src/components/budget/BudgetSection.tsx index b18213fb1..6cbd7f0a2 100644 --- a/client/src/components/budget/BudgetSection.tsx +++ b/client/src/components/budget/BudgetSection.tsx @@ -390,7 +390,7 @@ export function BudgetSection({ type="button" className={styles.addButton} onClick={openAddBudgetForm} - aria-label={t('budgetLineForm.addBudgetLineAriaLabel')} + aria-label={tBudget('budgetLineForm.addBudgetLineAriaLabel')} > {budgetLineType === 'household_item' ? t('detail.budget.addLineButton') : '+ Add Line'}