Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
345b3491
Commit
345b3491
authored
Jun 24, 2024
by
Timothy J. Baek
Browse files
fix: i18n
parent
b4c9e463
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
src/routes/(app)/workspace/functions/create/+page.svelte
src/routes/(app)/workspace/functions/create/+page.svelte
+3
-1
src/routes/(app)/workspace/functions/edit/+page.svelte
src/routes/(app)/workspace/functions/edit/+page.svelte
+3
-1
src/routes/(app)/workspace/tools/create/+page.svelte
src/routes/(app)/workspace/tools/create/+page.svelte
+3
-1
src/routes/(app)/workspace/tools/edit/+page.svelte
src/routes/(app)/workspace/tools/edit/+page.svelte
+3
-1
No files found.
src/routes/(app)/workspace/functions/create/+page.svelte
View file @
345b3491
<script>
import { toast } from 'svelte-sonner';
import { onMount } from 'svelte';
import { onMount
, getContext
} from 'svelte';
import { goto } from '$app/navigation';
import { functions, models } from '$lib/stores';
...
...
@@ -8,6 +8,8 @@
import FunctionEditor from '$lib/components/workspace/Functions/FunctionEditor.svelte';
import { getModels } from '$lib/apis';
const i18n = getContext('i18n');
let mounted = false;
let clone = false;
let func = null;
...
...
src/routes/(app)/workspace/functions/edit/+page.svelte
View file @
345b3491
<script>
import { toast } from 'svelte-sonner';
import { onMount } from 'svelte';
import { onMount
, getContext
} from 'svelte';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
...
...
@@ -11,6 +11,8 @@
import Spinner from '$lib/components/common/Spinner.svelte';
import { getModels } from '$lib/apis';
const i18n = getContext('i18n');
let func = null;
const saveHandler = async (data) => {
...
...
src/routes/(app)/workspace/tools/create/+page.svelte
View file @
345b3491
...
...
@@ -3,9 +3,11 @@
import { createNewTool, getTools } from '$lib/apis/tools';
import ToolkitEditor from '$lib/components/workspace/Tools/ToolkitEditor.svelte';
import { tools } from '$lib/stores';
import { onMount } from 'svelte';
import { onMount
, getContext
} from 'svelte';
import { toast } from 'svelte-sonner';
const i18n = getContext('i18n');
let mounted = false;
let clone = false;
let tool = null;
...
...
src/routes/(app)/workspace/tools/edit/+page.svelte
View file @
345b3491
...
...
@@ -5,9 +5,11 @@
import Spinner from '$lib/components/common/Spinner.svelte';
import ToolkitEditor from '$lib/components/workspace/Tools/ToolkitEditor.svelte';
import { tools } from '$lib/stores';
import { onMount } from 'svelte';
import { onMount
, getContext
} from 'svelte';
import { toast } from 'svelte-sonner';
const i18n = getContext('i18n');
let tool = null;
const saveHandler = async (data) => {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment