Add toasts i18n key

This commit is contained in:
SimonOriginal
2024-06-24 17:18:39 +02:00
parent 85b3b81617
commit 9c81d84e16
44 changed files with 496 additions and 15 deletions
@@ -24,7 +24,7 @@
if (res) {
console.log(res);
toast.success('Memory added successfully');
toast.success($i18n.t('Memory added successfully'));
content = '';
show = false;
dispatch('save');
@@ -35,7 +35,7 @@
if (res) {
console.log(res);
toast.success('Memory updated successfully');
toast.success($i18n.t('Memory updated successfully'));
dispatch('save');
show = false;
}
@@ -129,7 +129,7 @@
});
if (res) {
toast.success('Memory deleted successfully');
toast.success($i18n.t('Memory deleted successfully'));
memories = await getMemories(localStorage.token);
}
}}
@@ -182,7 +182,7 @@
});
if (res) {
toast.success('Memory cleared successfully');
toast.success($i18n.t('Memory cleared successfully'));
memories = [];
}
}}>{$i18n.t('Clear memory')}</button