From a7df1980ed23b7467366be42853a959612796ec6 Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Mon, 13 Jul 2026 15:57:54 +0400 Subject: [PATCH] fix(i18n): route dirty-guard and html-editor strings through TranslateService window.confirm/window.prompt calls in projectEditorDirtyGuard and MarketplaceHtmlEditorComponent, and the hardcoded Preview/Code toggle label in its template, bypassed the app's translation pipeline. Add builder.confirmLeaveUnsaved, promptLinkUrl, promptImageUrl, htmlEditorCode and htmlEditorPreview keys (en/ru/hy), resolve them via TranslateService.t() before passing to confirm/prompt, and use TranslatePipe for the toggle button label. --- .../marketplace-html-editor.component.html | 2 +- .../html-editor/marketplace-html-editor.component.ts | 12 ++++++++---- .../guards/project-editor-dirty.guard.ts | 4 +++- src/app/i18n/en.ts | 5 +++++ src/app/i18n/hy.ts | 5 +++++ src/app/i18n/ru.ts | 5 +++++ src/app/i18n/translations.ts | 5 +++++ 7 files changed, 32 insertions(+), 6 deletions(-) diff --git a/src/app/features/project-editor/components/html-editor/marketplace-html-editor.component.html b/src/app/features/project-editor/components/html-editor/marketplace-html-editor.component.html index 39e744a..3677e12 100644 --- a/src/app/features/project-editor/components/html-editor/marketplace-html-editor.component.html +++ b/src/app/features/project-editor/components/html-editor/marketplace-html-editor.component.html @@ -3,7 +3,7 @@ @for (item of toolbar; track item.id) { } - +