From a65d042c7389b42062971e67efb7cc01e5762e8d Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Thu, 14 Mar 2024 20:30:30 +0100 Subject: [PATCH] title fix + new translation keys --- src/lib/components/admin/Settings/Users.svelte | 5 +++-- src/lib/components/chat/Settings/About.svelte | 2 +- src/lib/i18n/locales/de-DE/translation.json | 2 ++ src/lib/i18n/locales/en-US/translation.json | 2 ++ src/routes/(app)/admin/+page.svelte | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/lib/components/admin/Settings/Users.svelte b/src/lib/components/admin/Settings/Users.svelte index 984f6c710..b6844be00 100644 --- a/src/lib/components/admin/Settings/Users.svelte +++ b/src/lib/components/admin/Settings/Users.svelte @@ -122,7 +122,7 @@ bind:value={modelId} placeholder="Select a model" > - + {#each $models.filter((model) => model.id) as model}
- {whitelistModels.length} Model(s) Whitelisted + {whitelistModels.length} + {$i18n.t('Model(s) Whitelisted')}
diff --git a/src/lib/components/chat/Settings/About.svelte b/src/lib/components/chat/Settings/About.svelte index c6241b5d8..3b3d85df7 100644 --- a/src/lib/components/chat/Settings/About.svelte +++ b/src/lib/components/chat/Settings/About.svelte @@ -62,7 +62,7 @@ ? $i18n.t('Checking for updates...') : updateAvailable ? `(v${version.latest} ${$i18n.t('available!')})` - : '(latest)'} + : $i18n.t('(latest)')} diff --git a/src/lib/i18n/locales/de-DE/translation.json b/src/lib/i18n/locales/de-DE/translation.json index 5db7da93a..1d5b2308e 100644 --- a/src/lib/i18n/locales/de-DE/translation.json +++ b/src/lib/i18n/locales/de-DE/translation.json @@ -2,6 +2,7 @@ "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.": "'s', 'm', 'h', 'd', 'w' oder '-1' für kein Ablaufdatum.", "(Beta)": "(Beta)", "(e.g. `sh webui.sh --api`)": "(z.B. `sh webui.sh --api`)", + "(latest)": "(neueste)", "{{modelName}} is thinking...": "{{modelName}} denkt nach...", "{{webUIName}} Backend Required": "{{webUIName}}-Backend erforderlich", "About": "Über", @@ -197,6 +198,7 @@ "Model not selected": "Modell nicht ausgewählt", "Model Tag Name": "Modell-Tag-Name", "Model Whitelisting": "Modell-Whitelisting", + "Model(s) Whitelisted": "Modell(e) auf der Whitelist", "Modelfile": "Modelfiles", "Modelfile Advanced Settings": "Erweiterte Modelfileseinstellungen", "Modelfile Content": "Modelfile Content", diff --git a/src/lib/i18n/locales/en-US/translation.json b/src/lib/i18n/locales/en-US/translation.json index b28ff0c86..5fc7cb44c 100644 --- a/src/lib/i18n/locales/en-US/translation.json +++ b/src/lib/i18n/locales/en-US/translation.json @@ -2,6 +2,7 @@ "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.": "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.", "(Beta)": "(Beta)", "(e.g. `sh webui.sh --api`)": "(e.g. `sh webui.sh --api`)", + "(latest)": "(latest)", "{{modelName}} is thinking...": "{{modelName}} is thinking...", "{{webUIName}} Backend Required": "{{webUIName}} Backend Required", "About": "About", @@ -197,6 +198,7 @@ "Model not selected": "Model not selected", "Model Tag Name": "Model Tag Name", "Model Whitelisting": "Model Whitelisting", + "Model(s) Whitelisted": "Model(s) Whitelisted", "Modelfile": "Modelfile", "Modelfile Advanced Settings": "Modelfile Advanced Settings", "Modelfile Content": "Modelfile Content", diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte index b1f0661c2..79ea40c44 100644 --- a/src/routes/(app)/admin/+page.svelte +++ b/src/routes/(app)/admin/+page.svelte @@ -64,7 +64,7 @@ - {$i18n.t('Admin Panel')} | ${$WEBUI_NAME} + {$i18n.t('Admin Panel')} | {$WEBUI_NAME} {#key selectedUser}