mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Add keys i18n
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
});
|
||||
|
||||
if (res) {
|
||||
toast.success('Function created successfully');
|
||||
toast.success($i18n.t('Function created successfully'));
|
||||
functions.set(await getFunctions(localStorage.token));
|
||||
models.set(await getModels(localStorage.token));
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
});
|
||||
|
||||
if (res) {
|
||||
toast.success('Function updated successfully');
|
||||
toast.success($i18n.t('Function updated successfully'));
|
||||
functions.set(await getFunctions(localStorage.token));
|
||||
models.set(await getModels(localStorage.token));
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
|
||||
if (res) {
|
||||
await models.set(await getModels(localStorage.token));
|
||||
toast.success('Model created successfully!');
|
||||
toast.success($i18n.t('Model created successfully!'));
|
||||
await goto('/workspace/models');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
|
||||
if (res) {
|
||||
await models.set(await getModels(localStorage.token));
|
||||
toast.success('Model updated successfully');
|
||||
toast.success($i18n.t('Model updated successfully'));
|
||||
await goto('/workspace/models');
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
});
|
||||
|
||||
if (res) {
|
||||
toast.success('Tool created successfully');
|
||||
toast.success($i18n.t('Tool created successfully'));
|
||||
tools.set(await getTools(localStorage.token));
|
||||
|
||||
await goto('/workspace/tools');
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
});
|
||||
|
||||
if (res) {
|
||||
toast.success('Tool updated successfully');
|
||||
toast.success($i18n.t('Tool updated successfully'));
|
||||
tools.set(await getTools(localStorage.token));
|
||||
|
||||
// await goto('/workspace/tools');
|
||||
|
||||
Reference in New Issue
Block a user