diff --git a/package.json b/package.json index 8fb01a63e..66a893ad3 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "lint:backend": "pylint backend/", "format": "prettier --plugin-search-dir --write '**/*.{js,ts,svelte,css,md,html,json}'", "format:backend": "yapf --recursive backend -p -i", - "i18n:parser": "i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'" + "i18n:parse": "i18next --config i18next-parser.config.ts && prettier --write 'src/lib/i18n/**/*.{js,json}'" }, "devDependencies": { "@sveltejs/adapter-auto": "^2.0.0", diff --git a/src/lib/components/chat/Settings/Connections.svelte b/src/lib/components/chat/Settings/Connections.svelte index 4f1a449ab..d3225d19e 100644 --- a/src/lib/components/chat/Settings/Connections.svelte +++ b/src/lib/components/chat/Settings/Connections.svelte @@ -241,7 +241,7 @@ href="https://github.com/open-webui/open-webui#troubleshooting" target="_blank" > - {$i18n.t('Click here for help')} + {$i18n.t('Click here for help.')} diff --git a/src/lib/components/chat/Settings/Images.svelte b/src/lib/components/chat/Settings/Images.svelte index 8966cba3e..ff65ae4de 100644 --- a/src/lib/components/chat/Settings/Images.svelte +++ b/src/lib/components/chat/Settings/Images.svelte @@ -141,18 +141,18 @@
{$i18n.t('Image Settings')}
-
Image Generation Engine
+
{$i18n.t('Image Generation Engine')}
@@ -167,10 +167,10 @@ class="p-1 px-3 text-xs flex rounded transition" on:click={() => { if (imageGenerationEngine === '' && AUTOMATIC1111_BASE_URL === '') { - toast.error('AUTOMATIC1111 Base URL is required.'); + toast.error($i18n.t('AUTOMATIC1111 Base URL is required.')); enableImageGeneration = false; } else if (imageGenerationEngine === 'openai' && OPENAI_API_KEY === '') { - toast.error('OpenAI API Key is required.'); + toast.error($i18n.t('OpenAI API Key is required.')); enableImageGeneration = false; } else { enableImageGeneration = !enableImageGeneration; @@ -197,7 +197,7 @@
@@ -226,22 +226,22 @@
- Include `--api` flag when running stable-diffusion-webui + {$i18n.t('Include `--api` flag when running stable-diffusion-webui')} - (e.g. `sh webui.sh --api`) + {$i18n.t('(e.g. `sh webui.sh --api`)')}
{:else if imageGenerationEngine === 'openai'} -
OpenAI API Key
+
{$i18n.t('OpenAI API Key')}
@@ -277,7 +277,7 @@
@@ -290,7 +290,7 @@
diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index c455ead4e..92e4afd24 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -409,7 +409,7 @@ @@ -813,12 +815,14 @@
-
API Base URL
+
{$i18n.t('API Base URL')}
@@ -827,12 +831,12 @@
-
API Key
+
{$i18n.t('API Key')}
@@ -841,12 +845,12 @@
-
API RPM
+
{$i18n.t('API RPM')}
@@ -855,12 +859,12 @@
-
Max Tokens
+
{$i18n.t('Max Tokens')}
- Not sure what to add? + {$i18n.t('Not sure what to add?')} - Click here for help. + {$i18n.t('Click here for help.')}
-
Delete a model
+
{$i18n.t('Delete a model')}