From 8dba75df34626051a5ba559bb715fb7356fb831e Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Sat, 1 Feb 2025 20:18:10 -0300 Subject: [PATCH] feat: add title to toast --- src/locales/en/translation.json | 4 +++- src/locales/pt-BR/translation.json | 4 +++- src/renderer/src/pages/settings/settings-real-debrid.tsx | 1 + src/renderer/src/pages/settings/settings-torbox.tsx | 5 ++++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index a1914c58..704f82a7 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -298,7 +298,9 @@ "subscription_renews_on": "Your subscription renews on {{date}}", "bill_sent_until": "Your next bill will be sent until this day", "enable_torbox": "Enable Torbox", - "torbox_description": "TorBox is your premium seedbox service rivaling even the best servers on the market." + "torbox_description": "TorBox is your premium seedbox service rivaling even the best servers on the market.", + "torbox_account_linked": "TorBox account linked", + "real_debrid_account_linked": "Real-Debrid account linked" }, "notifications": { "download_complete": "Download complete", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index 53fd48f5..403754db 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -287,7 +287,9 @@ "subscription_renews_on": "Sua assinatura renova dia {{date}}", "bill_sent_until": "Sua próxima cobrança será enviada até esse dia", "enable_torbox": "Habilitar Torbox", - "torbox_description": "TorBox é o seu serviço de seedbox premium que rivaliza até com os melhores servidores do mercado." + "torbox_description": "TorBox é o seu serviço de seedbox premium que rivaliza até com os melhores servidores do mercado.", + "torbox_account_linked": "Conta do TorBox vinculada", + "real_debrid_account_linked": "Conta Real-Debrid associada" }, "notifications": { "download_complete": "Download concluído", diff --git a/src/renderer/src/pages/settings/settings-real-debrid.tsx b/src/renderer/src/pages/settings/settings-real-debrid.tsx index dd4ecef4..300acc8e 100644 --- a/src/renderer/src/pages/settings/settings-real-debrid.tsx +++ b/src/renderer/src/pages/settings/settings-real-debrid.tsx @@ -57,6 +57,7 @@ export function SettingsRealDebrid() { return; } else { showSuccessToast( + t("real_debrid_account_linked"), t("debrid_linked_message", { username: user.username }) ); } diff --git a/src/renderer/src/pages/settings/settings-torbox.tsx b/src/renderer/src/pages/settings/settings-torbox.tsx index 52682ccc..fa7a41f5 100644 --- a/src/renderer/src/pages/settings/settings-torbox.tsx +++ b/src/renderer/src/pages/settings/settings-torbox.tsx @@ -49,7 +49,10 @@ export function SettingsTorbox() { form.torBoxApiToken! ); - showSuccessToast(t("debrid_linked_message", { username: user.email })); + showSuccessToast( + t("torbox_account_linked"), + t("debrid_linked_message", { username: user.email }) + ); } else { showSuccessToast(t("changes_saved")); }