From 51a3ed7d188de308f3696e1bd3710151158b4851 Mon Sep 17 00:00:00 2001 From: smanylov Date: Mon, 11 May 2026 13:49:29 +0700 Subject: [PATCH] fix translate --- src/app/ui/file-page/violation-table/case-claims.tsx | 4 ++-- src/i18n/messages/en.json | 2 ++ src/i18n/messages/ru.json | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/ui/file-page/violation-table/case-claims.tsx b/src/app/ui/file-page/violation-table/case-claims.tsx index 823d3a9..a1f6a00 100644 --- a/src/app/ui/file-page/violation-table/case-claims.tsx +++ b/src/app/ui/file-page/violation-table/case-claims.tsx @@ -52,7 +52,7 @@ export default function CaseViolation({ selectedViolation, updateStatusHandler, useEffect(() => { if (state?.success) { - toast.success(t('the-complaint-has-been-registered')); + toast.success(t('the-claims-has-been-registered')); const newStatus = selectedViolation.status === 'COMPLAINT_IN_WORK' ? 'COMPLAINT_AND_LEGAL_IN_WORK' @@ -69,7 +69,7 @@ export default function CaseViolation({ selectedViolation, updateStatusHandler, if (state.errorMessage?.server) { toast.warning(t(state.errorMessage.server)); } else { - toast.warning(t('the-complaint-has-not-been-registered')); + toast.warning(t('the-claims-has-not-been-registered')); } } }, [state, updateStatusHandler, selectedViolation.id]); diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index 0c98682..1243a89 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -385,7 +385,9 @@ "violation-id": "Violation ID", "no-information-about-the-complaint": "No information about the complaint", "the-complaint-has-not-been-registered": "The complaint has not been registered", + "the-claims-has-not-been-registered": "The claims has not been registered", "the-complaint-has-been-registered": "The complaint has been registered", + "the-claims-has-been-registered": "The claims has been registered", "all-statuses": "All statuses", "all": "All", "mark-all-as-read": "Mark all as read", diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index a482173..918304b 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -385,7 +385,9 @@ "violation-id": "ID нарушения", "no-information-about-the-complaint": "Нет информации о жалобе", "the-complaint-has-not-been-registered": "Жалоба не зарегистрирована", + "the-claims-has-not-been-registered": "Претензия не зарегистрирована", "the-complaint-has-been-registered": "Жалоба зарегистрирована", + "the-claims-has-been-registered": "Претензия зарегистрирована", "all-statuses": "Все статусы", "all": "Все", "mark-all-as-read": "Отметить все как прочитанные",