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

View File

@@ -81,7 +81,7 @@
});
if (res) {
toast.success('Function deleted successfully');
toast.success($i18n.t('Function deleted successfully'));
functions.set(await getFunctions(localStorage.token));
models.set(await getModels(localStorage.token));
@@ -404,7 +404,7 @@
});
}
toast.success('Functions imported successfully');
toast.success($i18n.t('Functions imported successfully'));
functions.set(await getFunctions(localStorage.token));
models.set(await getModels(localStorage.token));
};

View File

@@ -77,7 +77,7 @@
});
if (res) {
toast.success('Tool deleted successfully');
toast.success($i18n.t('Tool deleted successfully'));
tools.set(await getTools(localStorage.token));
}
};
@@ -388,7 +388,7 @@
});
}
toast.success('Tool imported successfully');
toast.success($i18n.t('Tool imported successfully'));
tools.set(await getTools(localStorage.token));
};

View File

@@ -51,7 +51,7 @@
}
if (res) {
toast.success('Valves updated successfully');
toast.success($i18n.t('Valves updated successfully'));
}
}