From 6418938fb094b1d81dbf4a2f23ee91717d938f1c Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Wed, 11 Dec 2024 11:44:59 +0300 Subject: [PATCH] Fix notification text --- src/components/workspace/settings/BillingOverview.vue | 4 ++-- src/i18n/messages/en.json | 4 +++- src/i18n/messages/ru.json | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/workspace/settings/BillingOverview.vue b/src/components/workspace/settings/BillingOverview.vue index dce3e97d..b9f85aa8 100644 --- a/src/components/workspace/settings/BillingOverview.vue +++ b/src/components/workspace/settings/BillingOverview.vue @@ -383,13 +383,13 @@ export default Vue.extend({ }); notifier.show({ - message: 'Subscription successfully canceled', + message: this.$i18n.t('billing.autoProlongation.cancelSuccessMessage') as string, style: 'success', time: 5000, }); } catch { notifier.show({ - message: 'Error during subscription cancelling', + message: this.$i18n.t('billing.autoProlongation.cancelErrorMessage') as string, style: 'error', time: 5000, }); diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json index 0aa94287..37349da0 100644 --- a/src/i18n/messages/en.json +++ b/src/i18n/messages/en.json @@ -356,7 +356,9 @@ "description": "You are about to subscribe for auto prolongation of the current plan of the workspace. That means that when the next payment date has come, the plan price will be automatically charged from your card. Read more about {0}.", "theNextPaymentDateTitle": "The next payment date", "acceptRecurrentPaymentAgreement": "I understand and accept the recurrent payments agreement", - "allowingChargesEveryMonth": "I allow charges from my bank card every month" + "allowingChargesEveryMonth": "I allow charges from my bank card every month", + "cancelSuccessMessage": "Subscription successfully canceled", + "cancelErrorMessage": "Error during subscription cancelling" }, "cloudPaymentsWidget": { "description": "Payment for tariff \"{tariffPlanName}\" for {workspaceName} workspace for a month" diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 2f257864..121dbcf4 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -356,7 +356,9 @@ "description": "Вы собираетесь подписаться на автоматическое продление текущего плана воркспейса. Это означает, что при наступлении следующей даты платежа стоимость плана будет автоматически списана с вашей карты. Подробнее читайте в {0}.", "theNextPaymentDateTitle": "Дата следующего списания", "acceptRecurrentPaymentAgreement": "Я понимаю и принимаю соглашение об автоматических платежах", - "allowingChargesEveryMonth": "Я разрешаю ежемесячные списания с моей банковской карты" + "allowingChargesEveryMonth": "Я разрешаю ежемесячные списания с моей банковской карты", + "cancelSuccessMessage": "Подписка отменена", + "cancelErrorMessage": "Ошибка при попытке отменить подписку" }, "cloudPaymentsWidget": { "description": "Оплата тарифа \"{tariffPlanName}\" для воркспейса {workspaceName} на месяц."