fix(i18n): route dirty-guard and html-editor strings through TranslateService
Some checks failed
Architecture Governance / architecture (push) Has been cancelled

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.
This commit is contained in:
sdarbinyan
2026-07-13 15:57:54 +04:00
parent 68442919d3
commit a7df1980ed
7 changed files with 32 additions and 6 deletions

View File

@@ -517,6 +517,11 @@ export const hy: Translations = {
unsavedChanges: 'Չպահված փոփոխություններ',
save: 'Պահպանել',
publish: 'Հրապարակել',
confirmLeaveUnsaved: 'Կան չպահված փոփոխություններ։ Այնուամենայնիվ դուրս գա՞լ։',
promptLinkUrl: 'URL',
promptImageUrl: 'Նկարի URL',
htmlEditorCode: 'Կոդ',
htmlEditorPreview: 'Նախադիտում',
},
staticPages: {
notFound: 'Էջը չի գտնվել',