From b13ac8a608c450dd15c670eba1983bbf27625942 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 22 Oct 2024 10:19:16 +0800 Subject: [PATCH] Fix clash of t's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And… due to the clash, the strings were not added for i18n --- src/locales/en.po | 8 ++++++++ src/pages/catchup.jsx | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/locales/en.po b/src/locales/en.po index 01ee6f00..3fa868a2 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -2655,6 +2655,14 @@ msgstr "" msgid "Remove this catch-up?" msgstr "" +#: src/pages/catchup.jsx:1065 +msgid "Removing Catch-up {0}" +msgstr "Removing Catch-up {0}" + +#: src/pages/catchup.jsx:1069 +msgid "Catch-up {0} removed" +msgstr "Catch-up {0} removed" + #: src/pages/catchup.jsx:1083 msgid "Note: Only max 3 will be stored. The rest will be automatically removed." msgstr "" diff --git a/src/pages/catchup.jsx b/src/pages/catchup.jsx index b219377a..442e22c3 100644 --- a/src/pages/catchup.jsx +++ b/src/pages/catchup.jsx @@ -1061,11 +1061,11 @@ function Catchup() { onClick={async () => { const yes = confirm(t`Remove this catch-up?`); if (yes) { - let t = showToast( + let st = showToast( t`Removing Catch-up ${pc.id}`, ); await db.catchup.del(pc.id); - t?.hideToast?.(); + st?.hideToast?.(); showToast(t`Catch-up ${pc.id} removed`); reloadCatchups(); }