@@ -107,7 +107,7 @@
reader.readAsText(file);
} else {
- toast.error(`File not found.`);
+ toast.error($i18n.t('File not found.'));
}
};
@@ -151,7 +151,7 @@
models.set(await getModels(localStorage.token));
- toast.error('Download canceled');
+ toast.error($i18n.t('Download canceled'));
delete $MODEL_DOWNLOAD_POOL[sanitizedModelTag];
@@ -245,7 +245,7 @@
@@ -17,7 +17,7 @@
tagName = '';
showTagInput = false;
- toast.error('Invalid Tag');
+ toast.error($i18n.t(`Invalid Tag`));
</script>
@@ -134,7 +134,7 @@
const editChatTitle = async (id, _title) => {
if (_title === '') {
- toast.error('Title cannot be an empty string.');
+ toast.error($i18n.t('Title cannot be an empty string.'));
title = _title;