fix(accounts): translate update button in edit account modal (#455)

## Problem
Update button in edit account modal showed hardcoded English (`Update` /
`Updating...`) instead of translated text.

## Fix
Wrap button label in `__()` so it resolves the existing `es.json` keys
(`Actualizar` / `Actualizando...`).

## Test
`edit-account-dialog.test.tsx` passes.
This commit is contained in:
Víctor Falcón 2026-05-30 16:09:30 +02:00 committed by GitHub
parent 05ee8dc442
commit 65175e184a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 4 deletions

View File

@ -361,7 +361,9 @@ export function EditAccountDialog({
type="submit"
disabled={isSubmitting || !initialValues}
>
{isSubmitting ? 'Updating...' : 'Update'}
{isSubmitting
? __('Updating...')
: __('Update')}
</Button>
</div>
</div>

View File

@ -49,7 +49,9 @@ export default function DeleteUser() {
<div className="space-y-6">
<HeadingSmall
title={__('Delete account')}
description={__('Mark your account as deleted and disable access')}
description={__(
'Mark your account as deleted and disable access',
)}
/>
<div className="space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10">

View File

@ -1,6 +1,6 @@
import { __ } from '@/utils/i18n';
import type { Transaction } from '@/types/transaction';
import type { UUID } from '@/types/uuid';
import { __ } from '@/utils/i18n';
import axios from 'axios';
import { db } from './dexie-db';

View File

@ -1,10 +1,10 @@
import { __ } from '@/utils/i18n';
import {
format as dateFnsFormat,
isToday as dateFnsIsToday,
isYesterday as dateFnsIsYesterday,
} from 'date-fns';
import { es } from 'date-fns/locale';
import { __ } from '@/utils/i18n';
/**
* Get the date-fns locale object based on locale code