Fix clash of t's

And… due to the clash, the strings were not added for i18n
This commit is contained in:
Lim Chee Aun 2024-10-22 10:19:16 +08:00
parent 71e721eda0
commit b13ac8a608
2 changed files with 10 additions and 2 deletions

8
src/locales/en.po generated
View file

@ -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 ""

View file

@ -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();
}