diff --git a/src/lib/apis/index.ts b/src/lib/apis/index.ts index c3701b7325..4670052459 100644 --- a/src/lib/apis/index.ts +++ b/src/lib/apis/index.ts @@ -360,7 +360,7 @@ export const getToolServersData = async (i18n, servers: object[]) => { : `${server?.url}${(server?.path ?? '').startsWith('/') ? '' : '/'}${server?.path}` ).catch((err) => { toast.error( - i18n.t(`Failed to connect to {{URL}} OpenAPI tool server`, { + $i18n.t(`Failed to connect to {{URL}} OpenAPI tool server`, { URL: (server?.path ?? '').includes('://') ? server?.path : `${server?.url}${(server?.path ?? '').startsWith('/') ? '' : '/'}${server?.path}` diff --git a/src/lib/components/AddConnectionModal.svelte b/src/lib/components/AddConnectionModal.svelte index b62c6e4d16..2439c71ba7 100644 --- a/src/lib/components/AddConnectionModal.svelte +++ b/src/lib/components/AddConnectionModal.svelte @@ -108,7 +108,7 @@ if (!ollama && !url) { loading = false; - toast.error('URL is required'); + toast.error($i18n.t('URL is required')); return; } @@ -116,20 +116,20 @@ if (!apiVersion) { loading = false; - toast.error('API Version is required'); + toast.error($i18n.t('API Version is required')); return; } if (!key) { loading = false; - toast.error('Key is required'); + toast.error($i18n.t('Key is required')); return; } if (modelIds.length === 0) { loading = false; - toast.error('Deployment names are required'); + toast.error($i18n.t('Deployment names are required for Azure OpenAI')); return; } } diff --git a/src/lib/components/AddServerModal.svelte b/src/lib/components/AddServerModal.svelte index acec5c4add..0a5819beae 100644 --- a/src/lib/components/AddServerModal.svelte +++ b/src/lib/components/AddServerModal.svelte @@ -278,8 +278,8 @@ class={`w-full text-sm bg-transparent pr-5 ${($settings?.highContrastMode ?? false) ? 'placeholder:text-gray-700 dark:placeholder:text-gray-100' : 'outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'}`} bind:value={auth_type} > - Bearer - Session + {$i18n.t('Bearer')} + {$i18n.t('Session')} diff --git a/src/lib/components/admin/Functions.svelte b/src/lib/components/admin/Functions.svelte index 757dd80056..815a0a2ace 100644 --- a/src/lib/components/admin/Functions.svelte +++ b/src/lib/components/admin/Functions.svelte @@ -105,7 +105,7 @@ sessionStorage.function = JSON.stringify({ ..._function, id: `${_function.id}_clone`, - name: `${_function.name} (Clone)` + name: `${_function.name} (${$i18n.t('Clone')})` }); goto('/admin/functions/create'); } @@ -655,7 +655,7 @@ >