From 3fe5f00114d5a3e40b5dd377f8d6d6e6afe9fe89 Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Mon, 4 Mar 2024 09:53:56 +0100 Subject: [PATCH] more translations --- src/lib/components/ChangelogModal.svelte | 3 +- .../components/admin/Settings/General.svelte | 2 +- .../components/admin/Settings/Users.svelte | 2 +- src/lib/components/chat/Settings/About.svelte | 11 +++--- .../components/chat/Settings/Account.svelte | 2 +- .../components/chat/Settings/Advanced.svelte | 2 +- src/lib/components/chat/Settings/Audio.svelte | 2 +- src/lib/components/chat/Settings/Chats.svelte | 2 +- .../chat/Settings/Connections.svelte | 6 +-- .../components/chat/Settings/General.svelte | 2 +- .../components/chat/Settings/Images.svelte | 9 +++-- .../components/chat/Settings/Interface.svelte | 4 +- .../components/chat/Settings/Models.svelte | 21 +++++----- .../components/documents/AddDocModal.svelte | 2 +- .../components/documents/EditDocModal.svelte | 2 +- .../documents/Settings/General.svelte | 2 +- src/lib/components/layout/Sidebar.svelte | 12 +++--- src/lib/i18n/locales/de/common.json | 39 +++++++++++++++++-- src/lib/i18n/locales/en/common.json | 37 +++++++++++++++++- src/lib/i18n/locales/fa/common.json | 37 +++++++++++++++++- src/routes/(app)/admin/+page.svelte | 4 +- src/routes/(app)/documents/+page.svelte | 4 +- src/routes/(app)/prompts/+page.svelte | 2 +- src/routes/auth/+page.svelte | 24 +++++++----- 24 files changed, 173 insertions(+), 60 deletions(-) diff --git a/src/lib/components/ChangelogModal.svelte b/src/lib/components/ChangelogModal.svelte index 7110d5d5b..635d2c034 100644 --- a/src/lib/components/ChangelogModal.svelte +++ b/src/lib/components/ChangelogModal.svelte @@ -25,7 +25,8 @@
- What’s New in {$WEBUI_NAME} + {$i18n.t('What’s New in')} + {$WEBUI_NAME}
diff --git a/src/lib/components/admin/Settings/Users.svelte b/src/lib/components/admin/Settings/Users.svelte index 2f1b308a1..620555d7b 100644 --- a/src/lib/components/admin/Settings/Users.svelte +++ b/src/lib/components/admin/Settings/Users.svelte @@ -78,7 +78,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')}
diff --git a/src/lib/components/chat/Settings/About.svelte b/src/lib/components/chat/Settings/About.svelte index 1ba48fc71..6af85a287 100644 --- a/src/lib/components/chat/Settings/About.svelte +++ b/src/lib/components/chat/Settings/About.svelte @@ -58,9 +58,9 @@ target="_blank" > {updateAvailable === null - ? 'Checking for updates...' + ? $i18n.t('Checking for updates...') : updateAvailable - ? `(v${version.latest} available!)` + ? `(v${version.latest} ${$i18n.t('available!')})` : '(latest)'} @@ -71,7 +71,7 @@ showChangelog.set(true); }} > -
See what's new
+
{$i18n.t("See what's new")}
@@ -81,7 +81,7 @@ checkForVersionUpdates(); }} > - Check for updates + {$i18n.t('Check for updates')} @@ -125,7 +125,8 @@
- Created by Timothy J. Baek - Save + {$i18n.t('Save')}
diff --git a/src/lib/components/chat/Settings/Advanced.svelte b/src/lib/components/chat/Settings/Advanced.svelte index fe232113a..6561c5b97 100644 --- a/src/lib/components/chat/Settings/Advanced.svelte +++ b/src/lib/components/chat/Settings/Advanced.svelte @@ -149,7 +149,7 @@ dispatch('save'); }} > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/chat/Settings/Audio.svelte b/src/lib/components/chat/Settings/Audio.svelte index ae4409104..9a92d7699 100644 --- a/src/lib/components/chat/Settings/Audio.svelte +++ b/src/lib/components/chat/Settings/Audio.svelte @@ -262,7 +262,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/chat/Settings/Chats.svelte b/src/lib/components/chat/Settings/Chats.svelte index 95c058217..1ed40f71e 100644 --- a/src/lib/components/chat/Settings/Chats.svelte +++ b/src/lib/components/chat/Settings/Chats.svelte @@ -154,7 +154,7 @@
- This setting does not sync across browsers or devices. + {$i18n.t('This setting does not sync across browsers or devices.')}
diff --git a/src/lib/components/chat/Settings/Connections.svelte b/src/lib/components/chat/Settings/Connections.svelte index e4c6daed9..de5a95f32 100644 --- a/src/lib/components/chat/Settings/Connections.svelte +++ b/src/lib/components/chat/Settings/Connections.svelte @@ -148,13 +148,13 @@
- Trouble accessing Ollama? + {$i18n.t('Trouble accessing Ollama?')} - Click here for help. + {$i18n.t('Click here for help')}
@@ -165,7 +165,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index 294d496a7..e10e48814 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -310,7 +310,7 @@ dispatch('save'); }} > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/chat/Settings/Images.svelte b/src/lib/components/chat/Settings/Images.svelte index 5361680ca..03c6eb136 100644 --- a/src/lib/components/chat/Settings/Images.svelte +++ b/src/lib/components/chat/Settings/Images.svelte @@ -177,13 +177,14 @@
- 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`)')}
@@ -248,7 +249,7 @@ type="submit" disabled={loading} > - Save + {$i18n.t('Save')} {#if loading}
diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index 529fad73e..c04b38975 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -317,7 +317,7 @@ {#if promptSuggestions.length > 0}
- Adjusting these settings will apply changes universally to all users. + {$i18n.t('Adjusting these settings will apply changes universally to all users.')}
{/if}
@@ -329,7 +329,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/chat/Settings/Models.svelte b/src/lib/components/chat/Settings/Models.svelte index b467ef5ba..0db3dc7ab 100644 --- a/src/lib/components/chat/Settings/Models.svelte +++ b/src/lib/components/chat/Settings/Models.svelte @@ -84,10 +84,12 @@ if (!data.success) { toast.error(data.error); } else { - toast.success($i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, {modelName})); + toast.success( + $i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, { modelName }) + ); const notification = new Notification($WEBUI_NAME, { - body: $i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, {modelName}), + body: $i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, { modelName }), icon: `${WEBUI_BASE_URL}/static/favicon.png` }); @@ -249,7 +251,7 @@ }); if (res) { - toast.success($i18n.t(`Deleted {{deleteModelTag}}`, {deleteModelTag})); + toast.success($i18n.t(`Deleted {{deleteModelTag}}`, { deleteModelTag })); } deleteModelTag = ''; @@ -376,7 +378,7 @@ {#if ollamaVersion}
-
Manage Ollama Models
+
{$i18n.t('Manage Ollama Models')}
{$i18n.t('Pull a model from Ollama.com')}
@@ -439,7 +441,8 @@
- To access the available model names for downloading, {$i18n.t('click here.')} { showExperimentalOllama = !showExperimentalOllama; - }}>{showExperimentalOllama ? 'Show' : 'Hide'}{showExperimentalOllama ? $i18n.t('Show') : $i18n.t('Hide')}
@@ -701,7 +704,7 @@ type="button" on:click={() => { showLiteLLMParams = !showLiteLLMParams; - }}>{showLiteLLMParams ? 'Advanced' : 'Default'}{showLiteLLMParams ? $i18n.t('Advanced') : $i18n.t('Default')}
@@ -796,13 +799,13 @@
- Not sure what to add? + {$i18n.t('Not sure what to add?')} - Click here for help. + {$i18n.t('Click here for help')}
diff --git a/src/lib/components/documents/AddDocModal.svelte b/src/lib/components/documents/AddDocModal.svelte index 8b0936b48..b7fee69b5 100644 --- a/src/lib/components/documents/AddDocModal.svelte +++ b/src/lib/components/documents/AddDocModal.svelte @@ -158,7 +158,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/documents/EditDocModal.svelte b/src/lib/components/documents/EditDocModal.svelte index b82fee91a..286d3531f 100644 --- a/src/lib/components/documents/EditDocModal.svelte +++ b/src/lib/components/documents/EditDocModal.svelte @@ -161,7 +161,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/documents/Settings/General.svelte b/src/lib/components/documents/Settings/General.svelte index f208fbf03..c6662b8b3 100644 --- a/src/lib/components/documents/Settings/General.svelte +++ b/src/lib/components/documents/Settings/General.svelte @@ -176,7 +176,7 @@ class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded" type="submit" > - Save + {$i18n.t('Save')} diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 2822a1080..3124815a8 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -240,9 +240,11 @@
{$i18n.t('Chat History is off for this browser.')}
- When history is turned off, new chats on this browser won't appear in your history on - any of your devices. This setting does not sync across browsers or devices.{$i18n.t('This setting does not sync across browsers or devices.')}
@@ -269,7 +271,7 @@ /> -
Enable Chat History
+
{$i18n.t('Enable Chat History')}
@@ -295,7 +297,7 @@ { enrichChatsWithContent($chats); diff --git a/src/lib/i18n/locales/de/common.json b/src/lib/i18n/locales/de/common.json index 282f64770..9bd5824c1 100644 --- a/src/lib/i18n/locales/de/common.json +++ b/src/lib/i18n/locales/de/common.json @@ -188,7 +188,7 @@ "Save & Update": "Speichern und aktualisieren", "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through": "Das direkte Speichern von Chat-Protokollen im Browser-Speicher wird nicht mehr unterstützt. Bitte nehmen Sie sich einen Moment Zeit, um Ihre Chat-Protokolle herunterzuladen und zu löschen, indem Sie auf die Schaltfläche unten klicken. Keine Sorge, Sie können Ihre Chat-Protokolle problemlos über das Backend wieder importieren.", "Scan complete!": "Scan abgeschlossen!", - "Scan for documents from {{path}}'": "Dokumente von {{path}} scannen'", + "Scan for documents from {{path}}": "Dokumente von {{path}} scannen", "Scan": "Scannen", "Seed": "Seed", "See readme.md for instructions": "Anleitung in readme.md anzeigen", @@ -244,7 +244,7 @@ "{{webui_name}} Backend Required": "{{webui_name}}-Backend erforderlich", "WebUI Settings": "WebUI-Einstellungen", "Web": "Web", - "Whisper (Local)": "Flüstern (Lokal)", + "Whisper (Local)": "Whisper (Lokal)", "You're now logged in.": "Sie sind jetzt angemeldet.", "Hide": "Verbergen", "Show": "Anzeigen", @@ -252,5 +252,38 @@ "Enter OpenAI API Key": "OpenAI-API-Key eingeben", "Current Model": "Aktuelles Modell", "Display the username instead of You in the Chat": "Den Benutzernamen anstelle von 'Sie' im Chat anzeigen", - "Default titleGenerationPromt": "Erstelle einen prägnanten Satz mit 3-5 Wörtern als Überschrift für die folgende Abfrage. Halte dich dabei strikt an die 3-5-Wort-Grenze und vermeide die Verwendung des Wortes Titel:" + "Default titleGenerationPromt": "Erstelle einen prägnanten Satz mit 3-5 Wörtern als Überschrift für die folgende Abfrage. Halte dich dabei strikt an die 3-5-Wort-Grenze und vermeide die Verwendung des Wortes Titel:", + "Search": "Suchen", + "Search Documents": "Dokumente suchen", + "Use '#' in the prompt input to load and select your documents.": "Verwenden Sie '#' in der Prompt-Eingabe, um Ihre Dokumente zu laden und auszuwählen.", + "All Users": "Alle Benutzer", + "Click on the user role button to change a user's role.": "Klicken Sie auf die Benutzerrollenschaltfläche, um die Rolle eines Benutzers zu ändern.", + "Manage Ollama Models": "Ollama-Modelle verwalten", + "Advanced": "Angepasst", + "Click here for help": "Klicken Sie hier für Hilfe", + "Not sure what to add?": "Nicht sicher, was hinzugefügt werden soll?", + "Adjusting these settings will apply changes universally to all users.": "Das Anpassen dieser Einstellungen wirkt sich universell auf alle Benutzer aus.", + "Trouble accessing Ollama?": "Probleme beim Zugriff auf Ollama?", + "(e.g. `sh webui.sh --api`)": "(z.B. `sh webui.sh --api`)", + "Include `--api` flag when running stable-diffusion-webui": "Fügen Sie das `--api`-Flag hinzu, wenn Sie stable-diffusion-webui ausführen", + "This setting does not sync across browsers or devices.": "Diese Einstellung wird nicht zwischen Browsern oder Geräten synchronisiert.", + "When history is turned off, new chats on this browser won't appear in your history on any of your devices.": "Wenn die Historie ausgeschaltet ist, werden neue Chats auf diesem Browser nicht in Ihrer Historie auf einem Ihrer Geräte angezeigt.", + "Enable Chat History": "Chat-Verlauf aktivieren", + "Search Prompts": "Prompts suchen", + "available!": "verfügbar!", + "Created by": "Erstellt von", + "Check for updates": "Nach Updates suchen", + "See what's new": "Was gibt's Neues", + "Checking for updates...": "Nach Updates suchen...", + "What’s New in": "Was gibt's Neues in", + "Enter Your Email": "Geben Sie Ihre E-Mail-Adresse ein", + "Enter Your Password": "Geben Sie Ihr Passwort ein", + "Enter Your Full Name": "Geben Sie Ihren vollständigen Namen ein", + "Sign in": "Anmelden", + "Sign up": "Registrieren", + "Create Account": "Konto erstellen", + "Don't have an account?": "Sie haben noch kein Konto?", + "Already have an account?": "Sie haben bereits ein Konto?", + "to": "für", + "does not make any external connections, and your data stays securely on your locally hosted server.": "stellt keine externen Verbindungen her, und Ihre Daten bleiben sicher auf Ihrem lokal gehosteten Server." } diff --git a/src/lib/i18n/locales/en/common.json b/src/lib/i18n/locales/en/common.json index 5e15aacf1..830eb4cea 100644 --- a/src/lib/i18n/locales/en/common.json +++ b/src/lib/i18n/locales/en/common.json @@ -188,7 +188,7 @@ "Save & Update": "Save & Update", "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through": "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through", "Scan complete!": "Scan complete!", - "Scan for documents from {{path}}'": "Scan for documents from {{path}}'", + "Scan for documents from {{path}}": "Scan for documents from {{path}}", "Scan": "Scan", "Seed": "Seed", "See readme.md for instructions": "See readme.md for instructions", @@ -252,5 +252,38 @@ "Enter OpenAI API Key": "Enter OpenAI API Key", "Current Model": "Current Model", "Display the username instead of You in the Chat": "Display the username instead of 'You' in the Chat", - "Default titleGenerationPromt": "Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':" + "Default titleGenerationPromt": "Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':", + "Search": "Search", + "Search Documents": "Search Documents", + "Use '#' in the prompt input to load and select your documents.": "Use '#' in the prompt input to load and select your documents.", + "All Users": "All Users", + "Click on the user role button to change a user's role.": "Click on the user role button to change a user's role.", + "Manage Ollama Models": "Manage Ollama Models", + "Advanced": "Advanced", + "Click here for help": "Click here for help", + "Not sure what to add?": "Not sure what to add?", + "Adjusting these settings will apply changes universally to all users.": "Adjusting these settings will apply changes universally to all users.", + "Trouble accessing Ollama?": "Trouble accessing Ollama?", + "(e.g. `sh webui.sh --api`)": "(e.g. `sh webui.sh --api`)", + "Include `--api` flag when running stable-diffusion-webui": "Include `--api` flag when running stable-diffusion-webui", + "This setting does not sync across browsers or devices.": "This setting does not sync across browsers or devices.", + "When history is turned off, new chats on this browser won't appear in your history on any of your devices.": "When history is turned off, new chats on this browser won't appear in your history on any of your devices.", + "Enable Chat History": "Enable Chat History", + "Search Prompts": "Search Prompts", + "available!": "available!", + "Created by": "Created by", + "Check for updates": "Check for updates", + "See what's new": "See what's new", + "Checking for updates...": "Checking for updates...", + "What’s New in": "hat’s New in", + "Enter Your Email": "Enter Your Email", + "Enter Your Password": "Enter Your Password", + "Enter Your Full Name": "Enter Your Full Name", + "Sign in": "Sign in", + "Sign up": "Sign up", + "Create Account": "Create Account", + "Don't have an account?": "Don't have an account?", + "Already have an account?": "Already have an account?", + "to": "to", + "does not make any external connections, and your data stays securely on your locally hosted server.": "does not make any external connections, and your data stays securely on your locally hosted server." } diff --git a/src/lib/i18n/locales/fa/common.json b/src/lib/i18n/locales/fa/common.json index 2f46bf280..5cc9ef080 100644 --- a/src/lib/i18n/locales/fa/common.json +++ b/src/lib/i18n/locales/fa/common.json @@ -188,7 +188,7 @@ "Save & Update": "ذخیره و به‌روزرسانی", "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through": "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through", "Scan complete!": "اسکن کامل شد!", - "Scan for documents from {{path}}'": "Scan for documents from {{path}}'", + "Scan for documents from {{path}}": "Scan for documents from {{path}}", "Scan": "اسکن", "Seed": "Seed", "See readme.md for instructions": "See readme.md for instructions", @@ -252,5 +252,38 @@ "Enter OpenAI API Key": "Enter OpenAI API Key", "Current Model": "Current Model", "Display the username instead of You in the Chat": "Display the username instead of 'You' in the Chat", - "Default titleGenerationPromt": "Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':" + "Default titleGenerationPromt": "Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title':", + "Search": "Search", + "Search Documents": "Search Documents", + "Use '#' in the prompt input to load and select your documents.": "Use '#' in the prompt input to load and select your documents.", + "All Users": "All Users", + "Click on the user role button to change a user's role.": "Click on the user role button to change a user's role.", + "Manage Ollama Models": "Manage Ollama Models", + "Advanced": "Advanced", + "Click here for help": "Click here for help", + "Not sure what to add?": "Not sure what to add?", + "Adjusting these settings will apply changes universally to all users.": "Adjusting these settings will apply changes universally to all users.", + "Trouble accessing Ollama?": "Trouble accessing Ollama?", + "(e.g. `sh webui.sh --api`)": "(e.g. `sh webui.sh --api`)", + "Include `--api` flag when running stable-diffusion-webui": "Include `--api` flag when running stable-diffusion-webui", + "This setting does not sync across browsers or devices.": "This setting does not sync across browsers or devices.", + "When history is turned off, new chats on this browser won't appear in your history on any of your devices.": "When history is turned off, new chats on this browser won't appear in your history on any of your devices.", + "Enable Chat History": "Enable Chat History", + "Search Prompts": "Search Prompts", + "available!": "available!", + "Created by": "Created by", + "Check for updates": "Check for updates", + "See what's new": "See what's new", + "Checking for updates...": "Checking for updates...", + "What’s New in": "hat’s New in", + "Enter Your Email": "Enter Your Email", + "Enter Your Password": "Enter Your Password", + "Enter Your Full Name": "Enter Your Full Name", + "Sign in": "Sign in", + "Sign up": "Sign up", + "Create Account": "Create Account", + "Don't have an account?": "Don't have an account?", + "Already have an account?": "Already have an account?", + "to": "to", + "does not make any external connections, and your data stays securely on your locally hosted server.": "does not make any external connections, and your data stays securely on your locally hosted server." } diff --git a/src/routes/(app)/admin/+page.svelte b/src/routes/(app)/admin/+page.svelte index 815ecc50b..8f8441e0a 100644 --- a/src/routes/(app)/admin/+page.svelte +++ b/src/routes/(app)/admin/+page.svelte @@ -90,7 +90,7 @@
- All Users + {$i18n.t('All Users')}
{users.length}
- ⓘ Click on the user role button to change a user's role. + ⓘ {$i18n.t("Click on the user role button to change a user's role.")}

diff --git a/src/routes/(app)/documents/+page.svelte b/src/routes/(app)/documents/+page.svelte index 64a0c19bf..0197f6986 100644 --- a/src/routes/(app)/documents/+page.svelte +++ b/src/routes/(app)/documents/+page.svelte @@ -219,7 +219,7 @@
- ⓘ Use '#' in the prompt input to load and select your documents. + ⓘ {$i18n.t("Use '#' in the prompt input to load and select your documents.")}
@@ -242,7 +242,7 @@ diff --git a/src/routes/(app)/prompts/+page.svelte b/src/routes/(app)/prompts/+page.svelte index c8b5745fa..c585f1c43 100644 --- a/src/routes/(app)/prompts/+page.svelte +++ b/src/routes/(app)/prompts/+page.svelte @@ -70,7 +70,7 @@ diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index d4411d7e1..d392e9f77 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -98,13 +98,17 @@ }} >
- {mode === 'signin' ? 'Sign in' : 'Sign up'} to {$WEBUI_NAME} + {mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Sign up')} + {$i18n.t('to')} + {$WEBUI_NAME}
{#if mode === 'signup'}
- ⓘ {$WEBUI_NAME} does not make any external connections, and your data stays securely on - your locally hosted server. + ⓘ {$WEBUI_NAME} + {$i18n.t( + 'does not make any external connections, and your data stays securely on your locally hosted server.' + )}
{/if} @@ -117,7 +121,7 @@ type="text" class=" border px-4 py-2.5 rounded-2xl w-full text-sm" autocomplete="name" - placeholder="Enter Your Full Name" + placeholder={$i18n.t('Enter Your Full Name')} required /> @@ -132,7 +136,7 @@ type="email" class=" border px-4 py-2.5 rounded-2xl w-full text-sm" autocomplete="email" - placeholder="Enter Your Email" + placeholder={$i18n.t('Enter Your Email')} required /> @@ -143,7 +147,7 @@ bind:value={password} type="password" class=" border px-4 py-2.5 rounded-2xl w-full text-sm" - placeholder="Enter Your Password" + placeholder={$i18n.t('Enter Your Password')} autocomplete="current-password" required /> @@ -155,11 +159,13 @@ class=" bg-gray-900 hover:bg-gray-800 w-full rounded-full text-white font-semibold text-sm py-3 transition" type="submit" > - {mode === 'signin' ? 'Sign In' : 'Create Account'} + {mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}
- {mode === 'signin' ? `Don't have an account?` : `Already have an account?`} + {mode === 'signin' + ? $i18n.t("Don't have an account?") + : $i18n.t('Already have an account?')}