Add keys i18n

This commit is contained in:
SimonOriginal
2024-06-24 19:38:26 +02:00
parent fbbffc4386
commit e0e9fcaa24
43 changed files with 228 additions and 6 deletions

View File

@@ -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));

View File

@@ -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));
}

View File

@@ -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');
}
}

View File

@@ -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');
}

View File

@@ -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');

View File

@@ -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');