From ccc1c8125698abb5e62a8ccc8afa5f2a42d952ac Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Thu, 14 Mar 2024 14:38:05 +0100 Subject: [PATCH] added missing translation keys --- src/lib/components/chat/Settings/About.svelte | 3 +- .../Settings/Account/UpdatePassword.svelte | 4 +- .../chat/Settings/Connections.svelte | 3 +- src/lib/components/chat/SettingsModal.svelte | 12 +- .../components/common/Tags/TagInput.svelte | 15 +- src/lib/i18n/locales/de-DE/translation.json | 9 +- src/lib/i18n/locales/en-US/translation.json | 9 +- src/lib/i18n/locales/uk-UA/translation.json | 1 - src/lib/i18n/locales/zh-TW/translation.json | 693 +++++++++--------- 9 files changed, 382 insertions(+), 367 deletions(-) diff --git a/src/lib/components/chat/Settings/About.svelte b/src/lib/components/chat/Settings/About.svelte index 6af85a287..c6241b5d8 100644 --- a/src/lib/components/chat/Settings/About.svelte +++ b/src/lib/components/chat/Settings/About.svelte @@ -45,7 +45,8 @@
- {$WEBUI_NAME} Version + {$WEBUI_NAME} + {$i18n.t('Version')}
diff --git a/src/lib/components/chat/Settings/Account/UpdatePassword.svelte b/src/lib/components/chat/Settings/Account/UpdatePassword.svelte index 296d84a0a..175ee61eb 100644 --- a/src/lib/components/chat/Settings/Account/UpdatePassword.svelte +++ b/src/lib/components/chat/Settings/Account/UpdatePassword.svelte @@ -49,7 +49,7 @@ type="button" on:click={() => { show = !show; - }}>{show ? 'Hide' : 'Show'}{show ? $i18n.t('Hide') : $i18n.t('Show')}
@@ -102,7 +102,7 @@
{/if} diff --git a/src/lib/components/chat/Settings/Connections.svelte b/src/lib/components/chat/Settings/Connections.svelte index d3225d19e..49da26a74 100644 --- a/src/lib/components/chat/Settings/Connections.svelte +++ b/src/lib/components/chat/Settings/Connections.svelte @@ -145,7 +145,8 @@
- WebUI will make requests to '{url}/models' + {$i18n.t('WebUI will make requests to')} + '{url}/models'
{/each} diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index e0e32599a..eb4e7a1fb 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -329,7 +329,7 @@ {getModels} {saveSettings} on:save={() => { - toast.success('Settings saved successfully!'); + toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'models'} @@ -338,28 +338,28 @@ { - toast.success('Settings saved successfully!'); + toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'interface'} { - toast.success('Settings saved successfully!'); + toast.success($i18n.t('Settings saved successfully!')); }} /> {:else if selectedTab === 'audio'}