From dff7169592e9be2a368a7c2a789f205cb4d06d76 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Wed, 17 Dec 2025 12:49:54 +0100 Subject: [PATCH] Fix data recovery tool i18n for titles --- .../data-recovery/data-recovery.component.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/key-management/data-recovery/data-recovery.component.ts b/apps/web/src/app/key-management/data-recovery/data-recovery.component.ts index 31179dfb062..9d2dce47726 100644 --- a/apps/web/src/app/key-management/data-recovery/data-recovery.component.ts +++ b/apps/web/src/app/key-management/data-recovery/data-recovery.component.ts @@ -127,7 +127,7 @@ export class DataRecoveryComponent { currentSteps[i].status = StepStatus.InProgress; this.steps.set([...currentSteps]); - this.logger.record(`Running diagnostics for step: ${step.title}`); + this.logger.record(`Running diagnostics for step: ${this.i18nService.t(step.title)}`); try { const success = await step.runDiagnostics(this.workingData, this.logger); currentSteps[i].status = success ? StepStatus.Completed : StepStatus.Failed; @@ -135,13 +135,13 @@ export class DataRecoveryComponent { hasAnyFailures = true; } this.steps.set([...currentSteps]); - this.logger.record(`Diagnostics completed for step: ${step.title}`); + this.logger.record(`Diagnostics completed for step: ${this.i18nService.t(step.title)}`); } catch (error) { currentSteps[i].status = StepStatus.Failed; currentSteps[i].message = (error as Error).message; this.steps.set([...currentSteps]); this.logger.record( - `Diagnostics failed for step: ${step.title} with error: ${(error as Error).message}`, + `Diagnostics failed for step: ${this.i18nService.t(step.title)} with error: ${(error as Error).message}`, ); hasAnyFailures = true; } @@ -172,7 +172,7 @@ export class DataRecoveryComponent { for (let i = 0; i < this.recoverySteps.length; i++) { const step = this.recoverySteps[i]; if (step.canRecover(this.workingData)) { - this.logger.record(`Running recovery for step: ${step.title}`); + this.logger.record(`Running recovery for step: ${this.i18nService.t(step.title)}`); await step.runRecovery(this.workingData, this.logger); } }