From d229613e0e11d7a3c817089ffafefadb2bf35744 Mon Sep 17 00:00:00 2001 From: Luffy <52o@qq52o.cn> Date: Fri, 16 Oct 2026 15:29:41 +0800 Subject: [PATCH] fix(journey): add localized error messages for dismissing suggestions --- client/src/pages/JourneyPage.test.tsx | 13 ++++++++----- client/src/pages/journey/useJourney.ts | 4 +--- shared/src/i18n/ar/journey.ts | 1 + shared/src/i18n/az/journey.ts | 1 + shared/src/i18n/br/journey.ts | 1 + shared/src/i18n/ca/journey.ts | 1 + shared/src/i18n/cs/journey.ts | 1 + shared/src/i18n/de/journey.ts | 1 + shared/src/i18n/es/journey.ts | 1 + shared/src/i18n/et/journey.ts | 1 + shared/src/i18n/fr/journey.ts | 1 + shared/src/i18n/gr/journey.ts | 1 + shared/src/i18n/hu/journey.ts | 1 + shared/src/i18n/id/journey.ts | 1 + shared/src/i18n/it/journey.ts | 1 + shared/src/i18n/ja/journey.ts | 1 + shared/src/i18n/ko/journey.ts | 1 + shared/src/i18n/nl/journey.ts | 1 + shared/src/i18n/pl/journey.ts | 1 + shared/src/i18n/ru/journey.ts | 1 + shared/src/i18n/sk/journey.ts | 1 + shared/src/i18n/sv/journey.ts | 1 + shared/src/i18n/th/journey.ts | 1 + shared/src/i18n/tr/journey.ts | 1 + shared/src/i18n/uk/journey.ts | 1 + shared/src/i18n/vi/journey.ts | 1 + shared/src/i18n/zh-TW/journey.ts | 1 + 27 files changed, 34 insertions(+), 8 deletions(-) diff --git a/client/src/pages/JourneyPage.test.tsx b/client/src/pages/JourneyPage.test.tsx index a11c86eaf..a199e81a9 100644 --- a/client/src/pages/JourneyPage.test.tsx +++ b/client/src/pages/JourneyPage.test.tsx @@ -12,6 +12,8 @@ import { useAddonStore } from '../store/addonStore'; import { usePermissionsStore } from '../store/permissionsStore'; import JourneyPage from './JourneyPage'; +const { mockToastError } = vi.hoisted(() => ({ mockToastError: vi.fn() })); + // ── Mocks ──────────────────────────────────────────────────────────────────── const mockNavigate = vi.fn(); @@ -24,6 +26,10 @@ vi.mock('../components/Layout/Navbar', () => ({ default: () =>