mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Add toasts i18n key
This commit is contained in:
@@ -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));
|
||||
};
|
||||
|
||||
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
|
||||
if (res) {
|
||||
toast.success('Valves updated successfully');
|
||||
toast.success($i18n.t('Valves updated successfully'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user