From 76bc312bb96f94d87a1a9cc6a2992de8fae0a8ae Mon Sep 17 00:00:00 2001 From: mirivlad Date: Wed, 15 Jul 2026 03:17:03 +0800 Subject: [PATCH] fix: localize deal rename confirmation --- frontend/e2e/localization.spec.js | 5 +++++ frontend/src/lib/i18n/catalogs/en.js | 1 + frontend/src/lib/i18n/catalogs/ru.js | 1 + frontend/src/lib/shell/WorkspaceTree.svelte | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/e2e/localization.spec.js b/frontend/e2e/localization.spec.js index 49acfb1..e375525 100644 --- a/frontend/e2e/localization.spec.js +++ b/frontend/e2e/localization.spec.js @@ -25,6 +25,11 @@ test.describe('Desktop localization', () => { await expect(page.locator('.sidebar .plugin-item').filter({ hasText: 'Тест платформы' })).toBeVisible(); await expect(page.locator('[data-status-item-id="verstak.platform-test.status"]')).toContainText('Все тесты пройдены'); + const project = page.locator('.wt-node').filter({ hasText: 'Project' }); + await project.locator('button[title="Переименовать Дело"]').click(); + await expect(page.locator('button[title="Сохранить новое название"]')).toHaveText('Сохранить'); + await page.locator('.wt-rename').press('Escape'); + await page.locator('[data-settings-menu-button]').click(); await expect(page.locator('[data-settings-action="plugin-manager"]')).toContainText('Менеджер плагинов'); await expect(page.locator('[data-settings-language="ru"]')).toHaveAttribute('aria-checked', 'true'); diff --git a/frontend/src/lib/i18n/catalogs/en.js b/frontend/src/lib/i18n/catalogs/en.js index b0b8c72..a3a652d 100644 --- a/frontend/src/lib/i18n/catalogs/en.js +++ b/frontend/src/lib/i18n/catalogs/en.js @@ -35,6 +35,7 @@ export default { 'pluginView.select': 'Select a plugin view from the sidebar', 'pluginView.selectHint': 'Plugin views will appear here', 'common.retry': '⟳ Retry', + 'common.save': 'Save', 'common.source': 'Source', 'common.status': 'Status', 'common.capability': 'Capability', diff --git a/frontend/src/lib/i18n/catalogs/ru.js b/frontend/src/lib/i18n/catalogs/ru.js index 2ca0174..235d3fe 100644 --- a/frontend/src/lib/i18n/catalogs/ru.js +++ b/frontend/src/lib/i18n/catalogs/ru.js @@ -35,6 +35,7 @@ export default { 'pluginView.select': 'Выберите представление плагина на боковой панели', 'pluginView.selectHint': 'Представления плагинов появятся здесь', 'common.retry': '⟳ Повторить', + 'common.save': 'Сохранить', 'common.source': 'Источник', 'common.status': 'Состояние', 'common.capability': 'Возможность', diff --git a/frontend/src/lib/shell/WorkspaceTree.svelte b/frontend/src/lib/shell/WorkspaceTree.svelte index 61f848c..20b2181 100644 --- a/frontend/src/lib/shell/WorkspaceTree.svelte +++ b/frontend/src/lib/shell/WorkspaceTree.svelte @@ -364,7 +364,7 @@ if (e.key === 'Escape') cancelRename(); }} /> - + {:else}