From c3a0fdbfbf1bd9d10d08579a57b7931902ab36bf Mon Sep 17 00:00:00 2001 From: gofnnp Date: Tue, 1 Jul 2025 19:33:55 +0400 Subject: [PATCH] AW-490-remove-russian-words remove russian words from ui --- messages/en.json | 6 +++- .../Buttons/Buttons.tsx | 2 +- src/components/ui/Toast/Toast.tsx | 2 +- .../ActionFieldsForm/ActionFieldsForm.tsx | 33 +++++++++++-------- .../widgets/ToastContainer/ToastContainer.tsx | 6 ---- src/entities/generations/actions.ts | 4 +-- src/entities/subscriptions/actions.ts | 2 +- src/hooks/generation/useGenerationPolling.ts | 2 +- 8 files changed, 30 insertions(+), 27 deletions(-) diff --git a/messages/en.json b/messages/en.json index a59a961..8abf933 100644 --- a/messages/en.json +++ b/messages/en.json @@ -166,7 +166,8 @@ }, "offer_button": "Применить", "cancel_button": "Я подтверждаю свои действия", - "error_message": "Something went wrong. Please try again later." + "error_message": "Something went wrong. Please try again later.", + "toast_message": "Your subscription will be cancelled!" }, "PlanCancelled": { "title": "Стандартный план Отменен!", @@ -211,5 +212,8 @@ "breath_relax": "Breath & Relax", "breath_in": "Breath in", "breath_out": "Breath out" + }, + "ActionFieldsForm": { + "required_field": "This field is required" } } diff --git a/src/components/domains/retaining/cancellation-of-subscription/Buttons/Buttons.tsx b/src/components/domains/retaining/cancellation-of-subscription/Buttons/Buttons.tsx index 5e7d425..a9d5762 100644 --- a/src/components/domains/retaining/cancellation-of-subscription/Buttons/Buttons.tsx +++ b/src/components/domains/retaining/cancellation-of-subscription/Buttons/Buttons.tsx @@ -97,7 +97,7 @@ export default function Buttons() { {isToastVisible && ( - Ваша подписка будет аннулирована! + {t("toast_message")} )} diff --git a/src/components/ui/Toast/Toast.tsx b/src/components/ui/Toast/Toast.tsx index 1d452a7..fb9d268 100644 --- a/src/components/ui/Toast/Toast.tsx +++ b/src/components/ui/Toast/Toast.tsx @@ -98,7 +98,7 @@ function Toast({