From fab89a76b1f2852253e4e3b74127eaffdf0c8bab Mon Sep 17 00:00:00 2001 From: Ased Mammad Date: Fri, 1 Mar 2024 08:10:36 +0330 Subject: [PATCH 001/116] feat: WIP: Initial setup for i18next --- package.json | 5 ++- src/lib/components/chat/MessageInput.svelte | 8 +++-- .../chat/MessageInput/Models.svelte | 4 ++- .../chat/Messages/Placeholder.svelte | 8 +++-- src/lib/components/chat/ModelSelector.svelte | 10 ++++-- .../components/chat/Settings/General.svelte | 26 +++++++++++++- .../components/chat/Settings/Images.svelte | 8 +++-- .../components/chat/Settings/Interface.svelte | 6 ++-- .../components/chat/Settings/Models.svelte | 13 ++++--- src/lib/components/layout/Sidebar.svelte | 8 +++-- src/lib/i18n/index.ts | 30 ++++++++++++++++ src/lib/i18n/locales/de/common.json | 10 ++++++ src/lib/i18n/locales/en/common.json | 10 ++++++ src/lib/i18n/locales/fa/common.json | 10 ++++++ src/lib/i18n/locales/fr/common.json | 10 ++++++ src/lib/i18n/store.ts | 34 +++++++++++++++++++ src/routes/+layout.svelte | 5 ++- 17 files changed, 180 insertions(+), 25 deletions(-) create mode 100644 src/lib/i18n/index.ts create mode 100644 src/lib/i18n/locales/de/common.json create mode 100644 src/lib/i18n/locales/en/common.json create mode 100644 src/lib/i18n/locales/fa/common.json create mode 100644 src/lib/i18n/locales/fr/common.json create mode 100644 src/lib/i18n/store.ts diff --git a/package.json b/package.json index 0e95102d..786175b0 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,9 @@ "dayjs": "^1.11.10", "file-saver": "^2.0.5", "highlight.js": "^11.9.0", + "i18next": "^23.10.0", + "i18next-browser-languagedetector": "^7.2.0", + "i18next-resources-to-backend": "^1.2.0", "idb": "^7.1.1", "js-sha256": "^0.10.1", "katex": "^0.16.9", @@ -53,4 +56,4 @@ "tippy.js": "^6.3.7", "uuid": "^9.0.1" } -} \ No newline at end of file +} diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 022ee4fb..3c418be3 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -1,6 +1,6 @@ @@ -163,7 +162,7 @@
- Display the username instead of "You" in the Chat + {$i18n.t('Display the username instead of You in the Chat')}
diff --git a/src/lib/components/admin/Settings/Users.svelte b/src/lib/components/admin/Settings/Users.svelte index 2f1b308a..620555d7 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 1ba48fc7..6af85a28 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 fe232113..6561c5b9 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 ae440910..9a92d769 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 95c05821..1ed40f71 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 e4c6daed..de5a95f3 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 294d496a..e10e4881 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 5361680c..03c6eb13 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 529fad73..c04b3897 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 b467ef5b..0db3dc7a 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 8b0936b4..b7fee69b 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 b82fee91..286d3531 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 f208fbf0..c6662b8b 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 2822a108..3124815a 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 282f6477..9bd5824c 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 5e15aacf..830eb4ce 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 2f46bf28..5cc9ef08 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 815ecc50..8f8441e0 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 64a0c19b..0197f698 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 c8b5745f..c585f1c4 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 d4411d7e..d392e9f7 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?')}
From 7a79aab5d43e940125779fdfacab0d18f3e11fd1 Mon Sep 17 00:00:00 2001 From: Jannik Streidl Date: Mon, 4 Mar 2024 11:15:54 +0100 Subject: [PATCH 013/116] (probably) last transition vars + Theme select element bg and icon fix --- src/lib/components/admin/EditUserModal.svelte | 5 +- .../components/admin/Settings/General.svelte | 5 +- .../chat/Messages/ResponseMessage.svelte | 2 +- .../chat/Messages/UserMessage.svelte | 7 +- .../components/chat/Settings/Advanced.svelte | 6 +- .../components/chat/Settings/General.svelte | 40 +--- src/lib/i18n/locales/de/common.json | 171 +++++++++-------- src/lib/i18n/locales/en/common.json | 173 ++++++++++-------- src/lib/i18n/locales/fa/common.json | 25 ++- src/routes/(app)/+page.svelte | 2 +- src/routes/(app)/c/[id]/+page.svelte | 2 +- .../(app)/modelfiles/create/+page.svelte | 8 +- src/routes/(app)/modelfiles/edit/+page.svelte | 8 +- src/routes/(app)/prompts/create/+page.svelte | 35 ++-- src/routes/(app)/prompts/edit/+page.svelte | 27 ++- 15 files changed, 287 insertions(+), 229 deletions(-) diff --git a/src/lib/components/admin/EditUserModal.svelte b/src/lib/components/admin/EditUserModal.svelte index 7f664919..f5fa0837 100644 --- a/src/lib/components/admin/EditUserModal.svelte +++ b/src/lib/components/admin/EditUserModal.svelte @@ -85,7 +85,8 @@
{selectedUser.name}
- Created at {dayjs(selectedUser.timestamp * 1000).format('MMMM DD, YYYY')} + {$i18n.t('Created at')} + {dayjs(selectedUser.timestamp * 1000).format($i18n.t('MMMM DD, YYYY'))}
@@ -141,7 +142,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/admin/Settings/General.svelte b/src/lib/components/admin/Settings/General.svelte index d8e19ae9..351cfa87 100644 --- a/src/lib/components/admin/Settings/General.svelte +++ b/src/lib/components/admin/Settings/General.svelte @@ -123,8 +123,9 @@
- Valid time units: 's', 'm', 'h', 'd', 'w' or '-1' for no expiration.{$i18n.t("'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.")}
diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 981b129e..8a3406a2 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -315,7 +315,7 @@ {#if message.timestamp} {/if} diff --git a/src/lib/components/chat/Messages/UserMessage.svelte b/src/lib/components/chat/Messages/UserMessage.svelte index 56cc6392..be47b7a8 100644 --- a/src/lib/components/chat/Messages/UserMessage.svelte +++ b/src/lib/components/chat/Messages/UserMessage.svelte @@ -67,17 +67,18 @@ {#if $modelfiles.map((modelfile) => modelfile.tagName).includes(message.user)} {$modelfiles.find((modelfile) => modelfile.tagName === message.user)?.title} {:else} - You {message?.user ?? ''} + {$i18n.t('Sie')} + {message?.user ?? ''} {/if} {:else if $settings.showUsername} {user.name} {:else} - You + {$i18n.t('Sie')} {/if} {#if message.timestamp} {/if} diff --git a/src/lib/components/chat/Settings/Advanced.svelte b/src/lib/components/chat/Settings/Advanced.svelte index 6561c5b9..cb33799c 100644 --- a/src/lib/components/chat/Settings/Advanced.svelte +++ b/src/lib/components/chat/Settings/Advanced.svelte @@ -74,9 +74,9 @@ }} > {#if keepAlive === null} - {$i18n.t(' Default ')} + {$i18n.t('Default')} {:else} - {$i18n.t(' Custom ')} + {$i18n.t('Custom')} {/if} @@ -86,7 +86,7 @@ diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index e10e4881..99388076 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -96,36 +96,8 @@
{$i18n.t('Theme')}
-
- {#if theme === 'dark'} - - - - {:else if theme === 'light'} - - - - {/if} -
-
@@ -245,7 +217,7 @@ diff --git a/src/lib/i18n/locales/de/common.json b/src/lib/i18n/locales/de/common.json index 9bd5824c..ac6fb4bc 100644 --- a/src/lib/i18n/locales/de/common.json +++ b/src/lib/i18n/locales/de/common.json @@ -1,27 +1,43 @@ { + "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.": "'s', 'm', 'h', 'd', 'w' oder '-1' für kein Ablaufdatum.", + "(e.g. `sh webui.sh --api`)": "(z.B. `sh webui.sh --api`)", + "{{item}} not provided": "{{item}} nicht angegeben", + "{{modelName}} is thinking...": "{{modelName}} denkt nach...", + "{{webui_name}} Backend Required": "{{webui_name}}-Backend erforderlich", "About": "Über", "Account": "Account", "Action": "Aktion", "Add a model": "Füge ein Modell hinzu", + "Add a model tag name": "Fügen Sie einen Modell-Tag-Namen hinzu", + "Add a short description about what this modelfile does": "Fügen Sie eine kurze Beschreibung hinzu, was dieses Modelfile kann", + "Add a short title for this prompt": "Fügen Sie einen kurzen Titel für diesen Prompt hinzu", "Add Docs": "Dokumente hinzufügen", "Add Files": "Dateien hinzufügen", "Add LiteLLM Model": "LiteLLM Modell hinzufügen", "add tags": "Tags hinzufügen", + "Adjusting these settings will apply changes universally to all users.": "Das Anpassen dieser Einstellungen wirkt sich universell auf alle Benutzer aus.", "Admin": "Admin", "Admin Panel": "Admin Panel", "Admin Settings": "Admin Einstellungen", + "Advanced": "Angepasst", "Advanced Model Params": "Erweiterte Modell Parameter", "Advanced Parameters": "Erweiterte Parameter", "all": "Alle", + "All Users": "Alle Benutzer", "Allow": "Erlauben", "Allow Chat Deletion": "Chat Löschung erlauben", + "alphanumeric characters and hyphens": "alphanumerische Zeichen und Bindestriche", + "Already have an account?": "Sie haben bereits ein Konto?", + "and": "und", "API Base URL": "API Basis URL", "API Key": "API Key", "API RPM": "API RPM", + "are allowed - Activate this command by typing": "sind erlaubt - Aktivieren Sie diesen Befehl, indem Sie", "Audio": "Audio", - "AUTOMATIC1111 Base URL": "AUTOMATIC1111 Basis URL", "Auto-playback response": "Automatische Wiedergabe der Antwort", "Auto-send input after 3 sec.": "Automatisches Senden der Eingabe nach 3 Sek", + "AUTOMATIC1111 Base URL": "AUTOMATIC1111 Basis URL", + "available!": "verfügbar!", "Back": "Zurück", "Builder Mode": "Builder Modus", "Cancel": "Abbrechen", @@ -31,12 +47,16 @@ "Chat History is off for this browser.": "Chat Verlauf ist für diesen Browser ausgeschaltet.", "Chats": "Chats", "Check Again": "Erneut überprüfen", + "Check for updates": "Nach Updates suchen", + "Checking for updates...": "Nach Updates suchen...", "Choose a model before saving...": "Wählen Sie ein Modell, bevor Sie speichern...", "Chunk Overlap": "Chunk Overlap", "Chunk Params": "Chunk Parameter", "Chunk Size": "Chunk Size", - "click here.": "hier klicken.", + "Click here for help": "Klicken Sie hier für Hilfe", "Click here to check other modelfiles.": "Klicken Sie hier, um andere Modelfiles zu überprüfen.", + "click here.": "hier klicken.", + "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.", "Collection": "Kollektion", "Command": "Befehl", "Confirm Password": "Passwort bestätigen", @@ -44,43 +64,60 @@ "Content": "Inhalt", "Context Length": "Context Length", "Conversation Mode": "Konversationsmodus", - "Copying to clipboard was successful!": "Das Kopieren in die Zwischenablage war erfolgreich!", "Copy last code block": "Letzten Codeblock kopieren", "Copy last response": "Letzte Antwort kopieren", + "Copying to clipboard was successful!": "Das Kopieren in die Zwischenablage war erfolgreich!", "Create a modelfile": "Modelfiles erstellen", + "Create Account": "Konto erstellen", + "Created at": "Erstellt am", + "Created by": "Erstellt von", + "Current Model": "Aktuelles Modell", "Current Password": "Aktuelles Passwort", "Custom": "Benutzerdefiniert", "Customize Ollama models for a specific purpose": "Ollama-Modelle für einen bestimmten Zweck anpassen", "Dark": "Dunkel", "Database": "Datenbank", + "DD/MM/YYYY HH:mm": "DD.MM.YYYY HH:mm", "Default": "Standard", + "Default (Web API)": "Standard (Web-API)", "Default model updated": "Standardmodell aktualisiert", "Default Prompt Suggestions": "Standard-Prompt-Vorschläge", + "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 User Role": "Standardbenutzerrolle", - "Default (Web API)": "Standard (Web-API)", + "delete": "löschen", "Delete a model": "Ein Modell löschen", "Delete chat": "Chat löschen", "Delete Chats": "Chats löschen", "Deleted {{deleteModelTag}}": "{{deleteModelTag}} gelöscht", - "delete": "löschen", "Deleted {tagName}": "{tagName} gelöscht", "Description": "Beschreibung", + "Desktop Notifications": "Desktop-Benachrichtigungen", "Disabled": "Deaktiviert", "Discover a modelfile": "Eine Modelfiles entdecken", "Discover a prompt": "Einen Prompt entdecken", "Discover, download, and explore custom prompts": "Benutzerdefinierte Prompts entdecken, herunterladen und erkunden", "Discover, download, and explore model presets": "Modellvorgaben entdecken, herunterladen und erkunden", + "Display the username instead of You in the Chat": "Den Benutzernamen anstelle von 'Sie' im Chat anzeigen", "Document": "Dokument", - "Documents": "Dokumente", "Document Settings": "Dokumenteinstellungen", + "Documents": "Dokumente", + "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.", "Don't Allow": "Nicht erlauben", + "Don't have an account?": "Sie haben noch kein Konto?", "Download as a File": "Als Datei herunterladen", "Download Database": "Datenbank herunterladen", + "e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "z.B. '30s','10m'. Gültige Zeiteinheiten sind 's', 'm', 'h'.", "Edit Doc": "Dokument bearbeiten", "Edit User": "Benutzer bearbeiten", "Email": "E-Mail", - "Enabled": "Aktiviert", + "Enable Chat History": "Chat-Verlauf aktivieren", "Enable New Sign Ups": "Neue Anmeldungen aktivieren", + "Enabled": "Aktiviert", + "Enter OpenAI API Key": "OpenAI-API-Key eingeben", + "Enter stop sequence": "Stop-Sequenz eingeben", + "Enter Your Email": "Geben Sie Ihre E-Mail-Adresse ein", + "Enter Your Full Name": "Geben Sie Ihren vollständigen Namen ein", + "Enter Your Password": "Geben Sie Ihr Passwort ein", "Experimental": "Experimentell", "Export All Chats (All Users)": "Alle Chats exportieren (alle Benutzer)", "Export Chats": "Chats exportieren", @@ -91,11 +128,13 @@ "File Mode": "Dateimodus", "File not found.`": "Datei nicht gefunden.`", "Focus chat input": "Chat-Eingabe fokussieren", + "Format your variables using square brackets like this:": "Formatieren Sie Ihre Variablen mit eckigen Klammern wie folgt:", "From (Base Model)": "Von (Basismodell)", "Full Screen Mode": "Vollbildmodus", "General": "Allgemein", "General Settings": "Allgemeine Einstellungen", "Hello, {{name}}": "Hallo, {{name}}", + "Hide": "Verbergen", "How can I help you today?": "Wie kann ich Ihnen heute helfen?", "Image Generation (Experimental)": "Bildgenerierung (experimentell)", "Image Settings": "Bildeinstellungen", @@ -104,8 +143,8 @@ "Import Documents Mapping": "Dokumentenmapping importieren", "Import Modelfiles": "Modelfiles importieren", "Import Prompts": "Prompts importieren", + "Include `--api` flag when running stable-diffusion-webui": "Fügen Sie das `--api`-Flag hinzu, wenn Sie stable-diffusion-webui ausführen", "Interface": "Benutzeroberfläche", - "{{item}} not provided": "{{item}} nicht angegeben", "join our Discord for help.": "treten Sie unserem Discord bei, um Hilfe zu erhalten.", "JSON": "JSON", "JWT Expiration": "JWT-Ablauf", @@ -120,44 +159,48 @@ "LiteLLM API RPM": "LiteLLM-API-RPM", "LLMs can make mistakes. Verify important information.": "LLMs können Fehler machen. Überprüfen Sie wichtige Informationen.", "Made by OpenWebUI Community": "Von der OpenWebUI-Community", + "Make sure to enclose them with": "Formatieren Sie Ihre Variablen mit:", "Manage LiteLLM Models": "LiteLLM-Modelle verwalten", - "Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Es können maximal 3 Modelle gleichzeitig heruntergeladen werden. Bitte versuchen Sie es später erneut.", + "Manage Ollama Models": "Ollama-Modelle verwalten", "Max Tokens": "Maximale Tokens", - "Mirostat Eta": "Mirostat Eta", + "Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Es können maximal 3 Modelle gleichzeitig heruntergeladen werden. Bitte versuchen Sie es später erneut.", "Mirostat": "Mirostat", + "Mirostat Eta": "Mirostat Eta", "Mirostat Tau": "Mirostat Tau", + "MMMM DD, YYYY": "DD.MM.YYYY", "Model '{{modelName}}' has been successfully downloaded.`": "Modell '{{modelName}}' wurde erfolgreich heruntergeladen.`", - "Modelfile Advanced Settings": "Erweiterte Modelfileseinstellungen", - "Modelfile Content": "Modelfilesinhalt", - "Modelfile": "Modelfiles", - "Modelfiles": "Modelfiles", + "Model '{{modelTag}}' is already in queue for downloading.": "Modell '{{modelTag}}' befindet sich bereits in der Warteschlange zum Herunterladen.", "Model {{modelId}} not found": "Modell {{modelId}} nicht gefunden", "Model {{modelName}} already exists.": "Modell {{modelName}} existiert bereits.", - "Model '{{modelTag}}' is already in queue for downloading.": "Modell '{{modelTag}}' befindet sich bereits in der Warteschlange zum Herunterladen.", - "{{modelName}} is thinking...": "{{modelName}} denkt nach...", "Model Name": "Modellname", "Model not selected": "Modell nicht ausgewählt", - "Models": "Modelle", "Model Tag Name": "Modell-Tag-Name", + "Modelfile": "Modelfiles", + "Modelfile Advanced Settings": "Erweiterte Modelfileseinstellungen", + "Modelfile Content": "Modelfilesinhalt", + "Modelfiles": "Modelfiles", + "Models": "Modelle", "My Documents": "Meine Dokumente", "My Modelfiles": "Meine Modelfiles", "My Prompts": "Meine Prompts", "Name": "Name", "Name Tag": "Namens-Tag", + "Name your Modelfile": "Benennen Sie Ihr Modelfile", "New Chat": "Neuer Chat", "New Password": "Neues Passwort", - "Desktop Notifications": "Desktop-Benachrichtigungen", + "Not sure what to add?": "Nicht sicher, was hinzugefügt werden soll?", "Not sure what to write? Switch to": "Nicht sicher, was Sie schreiben sollen? Wechseln Sie zu", "Off": "Aus", "Okay, Let's Go!": "Okay, los geht's!", "Ollama API URL": "Ollama-API-URL", "Ollama Version": "Ollama-Version", - "Only alphanumeric characters and hyphens are allowed in the command string.": "Nur alphanumerische Zeichen und Bindestriche sind im Befehlsstring erlaubt.", "On": "Ein", + "Only": "Nur", + "Only alphanumeric characters and hyphens are allowed in the command string.": "Nur alphanumerische Zeichen und Bindestriche sind im Befehlsstring erlaubt.", "Oops! Hold tight! Your files are still in the processing oven. We're cooking them up to perfection. Please be patient and we'll let you know once they're ready.": "Hoppla! Halten Sie sich fest! Ihre Dateien sind noch im Verarbeitungsofen. Wir bereiten sie perfekt zu. Bitte haben Sie Geduld und wir informieren Sie, sobald sie bereit sind.", - "OpenAI API": "OpenAI-API", "Open AI": "Open AI", "Open new chat": "Neuen Chat öffnen", + "OpenAI API": "OpenAI-API", "or": "oder", "Parameters": "Parameter", "Password": "Passwort", @@ -165,8 +208,8 @@ "Permission denied when accessing microphone: {{error}}": "Zugriff auf das Mikrofon verweigert: {{error}}", "Profile": "Profil", "Prompt Content": "Prompt-Inhalt", - "Prompts": "Prompts", "Prompt suggestions": "Prompt-Vorschläge", + "Prompts": "Prompts", "Pull a model from Ollama.com": "Ein Modell von Ollama.com abrufen", "Pull Progress": "Fortschritt abrufen", "RAG Template": "RAG-Vorlage", @@ -180,18 +223,22 @@ "Reset Vector Storage": "Vektorspeicher zurücksetzen", "Response AutoCopy to Clipboard": "Antwort automatisch in die Zwischenablage kopieren", "Role": "Rolle", - "Rosé Pine Dawn": "Rosé Pine Dawn", "Rosé Pine": "Rosé Pine", - "Save & Create": "Speichern und erstellen", + "Rosé Pine Dawn": "Rosé Pine Dawn", "Save": "Speichern", + "Save & Create": "Speichern und erstellen", "Save & Submit": "Speichern und senden", "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": "Scannen", "Scan complete!": "Scan abgeschlossen!", "Scan for documents from {{path}}": "Dokumente von {{path}} scannen", - "Scan": "Scannen", - "Seed": "Seed", + "Search": "Suchen", + "Search Documents": "Dokumente suchen", + "Search Prompts": "Prompts suchen", "See readme.md for instructions": "Anleitung in readme.md anzeigen", + "See what's new": "Was gibt's Neues", + "Seed": "Seed", "Select a model": "Ein Modell auswählen", "Send a Messsage": "Eine Nachricht senden", "Send message": "Nachricht senden", @@ -200,20 +247,24 @@ "Set Default Model": "Standardmodell festlegen", "Set Image Size": "Bildgröße festlegen", "Set Steps": "Schritte festlegen", - "Settings": "Einstellungen", "Set Title Auto-Generation Model": "Modell für automatische Titelgenerierung festlegen", "Set Voice": "Stimme festlegen", + "Settings": "Einstellungen", "Share to OpenWebUI Community": "Mit OpenWebUI Community teilen", + "short-summary": "kurze-zusammenfassung", + "Show": "Anzeigen", "Show shortcuts": "Verknüpfungen anzeigen", + "Sign in": "Anmelden", "Sign Out": "Abmelden", - "SpeechRecognition API is not supported in this browser.": "Die SpeechRecognition-API wird in diesem Browser nicht unterstützt.", + "Sign up": "Registrieren", "Speech recognition error: {{error}}": "Spracherkennungsfehler: {{error}}", "Speech-to-Text Engine": "Sprache-zu-Text-Engine", + "SpeechRecognition API is not supported in this browser.": "Die SpeechRecognition-API wird in diesem Browser nicht unterstützt.", "Stop Sequence": "Stop Sequence", "STT Settings": "STT-Einstellungen", + "Success": "Erfolg", "Successfully updated": "Erfolgreich aktualisiert", "Successfully updated.": "Erfolgreich aktualisiert.", - "Success": "Erfolg", "Sync All": "Alles synchronisieren", "System Prompt": "System-Prompt", "Tags": "Tags", @@ -223,67 +274,39 @@ "Tfs Z": "Tfs Z", "Theme": "Design", "This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "Dadurch werden Ihre wertvollen Unterhaltungen sicher in Ihrer Backend-Datenbank gespeichert. Vielen Dank!", + "This setting does not sync across browsers or devices.": "Diese Einstellung wird nicht zwischen Browsern oder Geräten synchronisiert.", + "Title": "Titel", "Title Auto-Generation": "Automatische Titelgenerierung", "Title Generation Prompt": "Prompt für Titelgenerierung", - "Title": "Titel", + "to": "für", "To access the available model names for downloading,": "Um auf die verfügbaren Modellnamen zum Herunterladen zuzugreifen,", + "to chat input.": "im Chat eingeben.", "Toggle settings": "Einstellungen umschalten", "Toggle sidebar": "Seitenleiste umschalten", "Top K": "Top K", "Top P": "Top P", + "Trouble accessing Ollama?": "Probleme beim Zugriff auf Ollama?", "TTS Settings": "TTS-Einstellungen", "Uh-oh! There was an issue connecting to {{provider}}.": "Ups! Es gab ein Problem bei der Verbindung mit {{provider}}.", "Upload a GGUF model": "Ein GGUF-Modell hochladen", "Upload files": "Dateien hochladen", "Upload Progress": "Upload-Fortschritt", "URL Mode": "URL-Modus", + "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.", + "User": "Benutzer", "User Permissions": "Benutzerberechtigungen", "Users": "Benutzer", - "User": "Benutzer", - "WebUI Add-ons": "WebUI-Add-Ons", - "{{webui_name}} Backend Required": "{{webui_name}}-Backend erforderlich", - "WebUI Settings": "WebUI-Einstellungen", + "Utilize": "Nutzen Sie die", + "Valid time units:": "Gültige Zeiteinheiten:", + "variable": "Variable", + "variable to have them replaced with clipboard content.": "Variable, um den Inhalt der Zwischenablage beim Nutzen des Prompts zu ersetzen.", "Web": "Web", - "Whisper (Local)": "Whisper (Lokal)", - "You're now logged in.": "Sie sind jetzt angemeldet.", - "Hide": "Verbergen", - "Show": "Anzeigen", - "Enter stop sequence": "Stop-Sequenz eingeben", - "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:", - "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...", + "WebUI Add-ons": "WebUI-Add-Ons", + "WebUI Settings": "WebUI-Einstellungen", "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." + "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.", + "Whisper (Local)": "Whisper (Lokal)", + "Write a prompt suggestion (e.g. Who are you?)": "Schreiben Sie einen Prompt-Vorschlag (z.B. Wer bist du?)", + "Write a summary in 50 words that summarizes [topic or keyword]": "Schreibe eine kurze Zusammenfassung in 50 Wörtern, die [Thema oder Schlüsselwort] zusammenfasst.", + "You're now logged in.": "Sie sind jetzt angemeldet." } diff --git a/src/lib/i18n/locales/en/common.json b/src/lib/i18n/locales/en/common.json index 830eb4ce..0a1c9997 100644 --- a/src/lib/i18n/locales/en/common.json +++ b/src/lib/i18n/locales/en/common.json @@ -1,27 +1,43 @@ { + "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.": "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.", + "(e.g. `sh webui.sh --api`)": "(e.g. `sh webui.sh --api`)", + "{{item}} not provided": "{{item}} not provided", + "{{modelName}} is thinking...": "{{modelName}} is thinking...", + "{{webui_name}} Backend Required": "{{webui_name}} Backend Required", "About": "About", "Account": "Account", "Action": "Action", "Add a model": "Add a model", + "Add a model tag name": "Add a model tag name", + "Add a short description about what this modelfile does": "Add a short description about what this modelfile does", + "Add a short title for this prompt": "Add a short title for this prompt", "Add Docs": "Add Docs", "Add Files": "Add Files", "Add LiteLLM Model": "Add LiteLLM Model", "add tags": "add tags", + "Adjusting these settings will apply changes universally to all users.": "Adjusting these settings will apply changes universally to all users.", "Admin": "Admin", "Admin Panel": "Admin Panel", "Admin Settings": "Admin Settings", + "Advanced": "Advanced", "Advanced Model Params": "Advanced Model Params", "Advanced Parameters": "Advanced Parameters", "all": "all", + "All Users": "All Users", "Allow": "Allow", "Allow Chat Deletion": "Allow Chat Deletion", + "alphanumeric characters and hyphens": "alphanumeric characters and hyphens", + "Already have an account?": "Already have an account?", + "and": "and", "API Base URL": "API Base URL", "API Key": "API Key", "API RPM": "API RPM", + "are allowed - Activate this command by typing": "are allowed - Activate this command by typing", "Audio": "Audio", - "AUTOMATIC1111 Base URL": "AUTOMATIC1111 Base URL", "Auto-playback response": "Auto-playback response", "Auto-send input after 3 sec.": "Auto-send input after 3 sec.", + "AUTOMATIC1111 Base URL": "AUTOMATIC1111 Base URL", + "available!": "available!", "Back": "Back", "Builder Mode": "Builder Mode", "Cancel": "Cancel", @@ -31,12 +47,16 @@ "Chat History is off for this browser.": "Chat History is off for this browser.", "Chats": "Chats", "Check Again": "Check Again", + "Check for updates": "Check for updates", + "Checking for updates...": "Checking for updates...", "Choose a model before saving...": "Choose a model before saving...", "Chunk Overlap": "Chunk Overlap", "Chunk Params": "Chunk Params", "Chunk Size": "Chunk Size", - "click here.": "click here.", + "Click here for help": "Click here for help", "Click here to check other modelfiles.": "Click here to check other modelfiles.", + "click here.": "click here.", + "Click on the user role button to change a user's role.": "Click on the user role button to change a user's role.", "Collection": "Collection", "Command": "Command", "Confirm Password": "Confirm Password", @@ -44,43 +64,60 @@ "Content": "Content", "Context Length": "Context Length", "Conversation Mode": "Conversation Mode", - "Copying to clipboard was successful!": "Copying to clipboard was successful!", "Copy last code block": "Copy last code block", "Copy last response": "Copy last response", + "Copying to clipboard was successful!": "Copying to clipboard was successful!", "Create a modelfile": "Create a modelfile", + "Create Account": "Create Account", + "Created at": "Created at", + "Created by": "Created by", + "Current Model": "Current Model", "Current Password": "Current Password", "Custom": "Custom", "Customize Ollama models for a specific purpose": "Customize Ollama models for a specific purpose", "Dark": "Dark", "Database": "Database", + "DD/MM/YYYY HH:mm": "DD/MM/YYYY HH:mm", "Default": "Default", + "Default (Web API)": "Default (Web API)", "Default model updated": "Default model updated", "Default Prompt Suggestions": "Default Prompt Suggestions", + "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 User Role": "Default User Role", - "Default (Web API)": "Default (Web API)", + "delete": "delete", "Delete a model": "Delete a model", "Delete chat": "Delete chat", "Delete Chats": "Delete Chats", "Deleted {{deleteModelTag}}": "Deleted {{deleteModelTag}}", - "delete": "delete", "Deleted {tagName}": "Deleted {tagName}", "Description": "Description", + "Desktop Notifications": "Notification", "Disabled": "Disabled", "Discover a modelfile": "Discover a modelfile", "Discover a prompt": "Discover a prompt", "Discover, download, and explore custom prompts": "Discover, download, and explore custom prompts", "Discover, download, and explore model presets": "Discover, download, and explore model presets", + "Display the username instead of You in the Chat": "Display the username instead of 'You' in the Chat", "Document": "Document", - "Documents": "Documents", "Document Settings": "Document Settings", + "Documents": "Documents", + "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.", "Don't Allow": "Don't Allow", + "Don't have an account?": "Don't have an account?", "Download as a File": "Download as a File", "Download Database": "Download Database", + "e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.", "Edit Doc": "Edit Doc", "Edit User": "Edit User", "Email": "Email", - "Enabled": "Enabled", + "Enable Chat History": "Enable Chat History", "Enable New Sign Ups": "Enable New Sign Ups", + "Enabled": "Enabled", + "Enter OpenAI API Key": "Enter OpenAI API Key", + "Enter stop sequence": "Enter stop sequence", + "Enter Your Email": "Enter Your Email", + "Enter Your Full Name": "Enter Your Full Name", + "Enter Your Password": "Enter Your Password", "Experimental": "Experimental", "Export All Chats (All Users)": "Export All Chats (All Users)", "Export Chats": "Export Chats", @@ -91,11 +128,13 @@ "File Mode": "File Mode", "File not found.`": "File not found.`", "Focus chat input": "Focus chat input", + "Format your variables using square brackets like this:": "Format your variables using square brackets like this:", "From (Base Model)": "From (Base Model)", "Full Screen Mode": "Full Screen Mode", "General": "General", "General Settings": "General Settings", "Hello, {{name}}": "Hello, {{name}}", + "Hide": "Hide", "How can I help you today?": "How can I help you today?", "Image Generation (Experimental)": "Image Generation (Experimental)", "Image Settings": "Image Settings", @@ -104,8 +143,8 @@ "Import Documents Mapping": "Import Documents Mapping", "Import Modelfiles": "Import Modelfiles", "Import Prompts": "Import Prompts", + "Include `--api` flag when running stable-diffusion-webui": "Include `--api` flag when running stable-diffusion-webui", "Interface": "Interface", - "{{item}} not provided": "{{item}} not provided", "join our Discord for help.": "join our Discord for help.", "JSON": "JSON", "JWT Expiration": "JWT Expiration", @@ -120,44 +159,48 @@ "LiteLLM API RPM": "LiteLLM API RPM", "LLMs can make mistakes. Verify important information.": "LLMs can make mistakes. Verify important information.", "Made by OpenWebUI Community": "Made by OpenWebUI Community", + "Make sure to enclose them with": "Make sure to enclose them with", "Manage LiteLLM Models": "Manage LiteLLM Models", - "Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maximum of 3 models can be downloaded simultaneously. Please try again later.", + "Manage Ollama Models": "Manage Ollama Models", "Max Tokens": "Max Tokens", - "Mirostat Eta": "Mirostat Eta", + "Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maximum of 3 models can be downloaded simultaneously. Please try again later.", "Mirostat": "Mirostat", + "Mirostat Eta": "Mirostat Eta", "Mirostat Tau": "Mirostat Tau", + "MMMM DD, YYYY": "MMMM DD, YYYY", "Model '{{modelName}}' has been successfully downloaded.`": "Model '{{modelName}}' has been successfully downloaded.`", - "Modelfile Advanced Settings": "Modelfile Advanced Settings", - "Modelfile Content": "Modelfile Content", - "Modelfile": "Modelfile", - "Modelfiles": "Modelfiles", + "Model '{{modelTag}}' is already in queue for downloading.": "Model '{{modelTag}}' is already in queue for downloading.", "Model {{modelId}} not found": "Model {{modelId}} not found", "Model {{modelName}} already exists.": "Model {{modelName}} already exists.", - "Model '{{modelTag}}' is already in queue for downloading.": "Model '{{modelTag}}' is already in queue for downloading.", - "{{modelName}} is thinking...": "{{modelName}} is thinking...", "Model Name": "Model Name", "Model not selected": "Model not selected", - "Models": "Models", "Model Tag Name": "Model Tag Name", + "Modelfile": "Modelfile", + "Modelfile Advanced Settings": "Modelfile Advanced Settings", + "Modelfile Content": "Modelfile Content", + "Modelfiles": "Modelfiles", + "Models": "Models", "My Documents": "My Documents", "My Modelfiles": "My Modelfiles", "My Prompts": "My Prompts", "Name": "Name", "Name Tag": "Name Tag", + "Name your Modelfile": "Name your Modelfile", "New Chat": "New Chat", "New Password": "New Password", - "Desktop Notifications": "Notification", + "Not sure what to add?": "Not sure what to add?", "Not sure what to write? Switch to": "Not sure what to write? Switch to", "Off": "Off", "Okay, Let's Go!": "Okay, Let's Go!", "Ollama API URL": "Ollama API URL", "Ollama Version": "Ollama Version", - "Only alphanumeric characters and hyphens are allowed in the command string.": "Only alphanumeric characters and hyphens are allowed in the command string.", "On": "On", + "Only": "Only", + "Only alphanumeric characters and hyphens are allowed in the command string.": "Only alphanumeric characters and hyphens are allowed in the command string.", "Oops! Hold tight! Your files are still in the processing oven. We're cooking them up to perfection. Please be patient and we'll let you know once they're ready.": "Oops! Hold tight! Your files are still in the processing oven. We're cooking them up to perfection. Please be patient and we'll let you know once they're ready.", - "OpenAI API": "OpenAI API", "Open AI": "Open AI", "Open new chat": "Open new chat", + "OpenAI API": "OpenAI API", "or": "or", "Parameters": "Parameters", "Password": "Password", @@ -165,8 +208,8 @@ "Permission denied when accessing microphone: {{error}}": "Permission denied when accessing microphone: {{error}}", "Profile": "Profile", "Prompt Content": "Prompt Content", - "Prompts": "Prompts", "Prompt suggestions": "Prompt suggestions", + "Prompts": "Prompts", "Pull a model from Ollama.com": "Pull a model from Ollama.com", "Pull Progress": "Pull Progress", "RAG Template": "RAG Template", @@ -180,18 +223,22 @@ "Reset Vector Storage": "Reset Vector Storage", "Response AutoCopy to Clipboard": "Response AutoCopy to Clipboard", "Role": "Role", - "Ros\u00e9 Pine Dawn": "Ros\u00e9 Pine Dawn", - "Ros\u00e9 Pine": "Ros\u00e9 Pine", - "Save & Create": "Save & Create", + "Rosé Pine": "Rosé Pine", + "Rosé Pine Dawn": "Rosé Pine Dawn", "Save": "Save", + "Save & Create": "Save & Create", "Save & Submit": "Save & Submit", "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": "Scan", "Scan complete!": "Scan complete!", "Scan for documents from {{path}}": "Scan for documents from {{path}}", - "Scan": "Scan", - "Seed": "Seed", + "Search": "Search", + "Search Documents": "Search Documents", + "Search Prompts": "Search Prompts", "See readme.md for instructions": "See readme.md for instructions", + "See what's new": "See what's new", + "Seed": "Seed", "Select a model": "Select a model", "Send a Messsage": "Send a Messsage", "Send message": "Send message", @@ -200,20 +247,24 @@ "Set Default Model": "Set Default Model", "Set Image Size": "Set Image Size", "Set Steps": "Set Steps", - "Settings": "Settings", "Set Title Auto-Generation Model": "Set Title Auto-Generation Model", "Set Voice": "Set Voice", + "Settings": "Settings", "Share to OpenWebUI Community": "Share to OpenWebUI Community", + "short-summary": "short-summary", + "Show": "Show", "Show shortcuts": "Show shortcuts", + "Sign in": "Sign in", "Sign Out": "Sign Out", - "SpeechRecognition API is not supported in this browser.": "SpeechRecognition API is not supported in this browser.", + "Sign up": "Sign up", "Speech recognition error: {{error}}": "Speech recognition error: {{error}}", "Speech-to-Text Engine": "Speech-to-Text Engine", + "SpeechRecognition API is not supported in this browser.": "SpeechRecognition API is not supported in this browser.", "Stop Sequence": "Stop Sequence", "STT Settings": "STT Settings", + "Success": "Success", "Successfully updated": "Successfully updated", "Successfully updated.": "Successfully updated.", - "Success": "Success", "Sync All": "Sync All", "System Prompt": "System Prompt", "Tags": "Tags", @@ -223,67 +274,39 @@ "Tfs Z": "Tfs Z", "Theme": "Theme", "This ensures that your valuable conversations are securely saved to your backend database. Thank you!": "This ensures that your valuable conversations are securely saved to your backend database. Thank you!", + "This setting does not sync across browsers or devices.": "This setting does not sync across browsers or devices.", + "Title": "Title", "Title Auto-Generation": "Title Auto-Generation", "Title Generation Prompt": "Title Generation Prompt", - "Title": "Title", + "to": "to", "To access the available model names for downloading,": "To access the available model names for downloading,", + "to chat input.": "to chat input.", "Toggle settings": "Toggle settings", "Toggle sidebar": "Toggle sidebar", "Top K": "Top K", "Top P": "Top P", + "Trouble accessing Ollama?": "Trouble accessing Ollama?", "TTS Settings": "TTS Settings", "Uh-oh! There was an issue connecting to {{provider}}.": "Uh-oh! There was an issue connecting to {{provider}}.", "Upload a GGUF model": "Upload a GGUF model", "Upload files": "Upload files", "Upload Progress": "Upload Progress", "URL Mode": "URL Mode", + "Use '#' in the prompt input to load and select your documents.": "Use '#' in the prompt input to load and select your documents.", + "User": "User", "User Permissions": "User Permissions", "Users": "Users", - "User": "User", - "WebUI Add-ons": "WebUI Add-ons", - "{{webui_name}} Backend Required": "{{webui_name}} Backend Required", - "WebUI Settings": "WebUI Settings", + "Utilize": "Utilize", + "Valid time units:": "Valid time units:", + "variable": "variable", + "variable to have them replaced with clipboard content.": "variable to have them replaced with clipboard content.", "Web": "Web", - "Whisper (Local)": "Whisper (Local)", - "You're now logged in.": "You're now logged in.", - "Hide": "Hide", - "Show": "Show", - "Enter stop sequence": "Enter stop sequence", - "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':", - "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...", + "WebUI Add-ons": "WebUI Add-ons", + "WebUI Settings": "WebUI Settings", "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." + "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.", + "Whisper (Local)": "Whisper (Local)", + "Write a prompt suggestion (e.g. Who are you?)": "Write a prompt suggestion (e.g. Who are you?)", + "Write a summary in 50 words that summarizes [topic or keyword]": "Write a summary in 50 words that summarizes [topic or keyword]", + "You're now logged in.": "You're now logged in." } diff --git a/src/lib/i18n/locales/fa/common.json b/src/lib/i18n/locales/fa/common.json index 5cc9ef08..1d026f1c 100644 --- a/src/lib/i18n/locales/fa/common.json +++ b/src/lib/i18n/locales/fa/common.json @@ -285,5 +285,28 @@ "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." + "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.", + "DD/MM/YYYY HH:mm": "DD/MM/YYYY HH:mm", + "MMMM DD, YYYY": "MMMM DD, YYYY", + "Created at": "Created at", + "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.": "'s', 'm', 'h', 'd', 'w' or '-1' for no expiration.", + "Valid time units:": "Valid time units:", + "e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.": "e.g. '30s','10m'. Valid time units are 's', 'm', 'h'.", + "Name your Modelfile": "Name your Modelfile", + "Add a model tag name": "Add a model tag name", + "Add a short description about what this modelfile does": "Add a short description about what this modelfile does", + "Write a prompt suggestion (e.g. Who are you?)": "Write a prompt suggestion (e.g. Who are you?)", + "Only": "Only", + "alphanumeric characters and hyphens": "alphanumeric characters and hyphens", + "are allowed - Activate this command by typing": "are allowed - Activate this command by typing", + "to chat input.": "to chat input.", + "Write a summary in 50 words that summarizes [topic or keyword]": "Write a summary in 50 words that summarizes [topic or keyword]", + "variable": "variable", + "Format your variables using square brackets like this:": "Format your variables using square brackets like this:", + "Make sure to enclose them with": "Make sure to enclose them with", + "and": "and", + "Utilize": "Utilize", + "variable to have them replaced with clipboard content.": "variable to have them replaced with clipboard content.", + "short-summary": "short-summary", + "Add a short title for this prompt": "Add a short title for this prompt" } diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte index d730de8e..cb334b79 100644 --- a/src/routes/(app)/+page.svelte +++ b/src/routes/(app)/+page.svelte @@ -207,7 +207,7 @@ if ($settings.saveChatHistory ?? true) { chat = await createNewChat(localStorage.token, { id: $chatId, - title: 'New Chat', + title: $i18n.t('New Chat'), models: selectedModels, system: $settings.system ?? undefined, options: { diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index 18686905..5df28160 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -220,7 +220,7 @@ if ($settings.saveChatHistory ?? true) { chat = await createNewChat(localStorage.token, { id: $chatId, - title: 'New Chat', + title: $i18n.t('New Chat'), models: selectedModels, system: $settings.system ?? undefined, options: { diff --git a/src/routes/(app)/modelfiles/create/+page.svelte b/src/routes/(app)/modelfiles/create/+page.svelte index 8fd59cdf..da6a8d55 100644 --- a/src/routes/(app)/modelfiles/create/+page.svelte +++ b/src/routes/(app)/modelfiles/create/+page.svelte @@ -425,7 +425,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
@@ -438,7 +438,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
@@ -452,7 +452,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
@@ -624,7 +624,7 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
diff --git a/src/routes/(app)/modelfiles/edit/+page.svelte b/src/routes/(app)/modelfiles/edit/+page.svelte index 4947f5ac..d10aa139 100644 --- a/src/routes/(app)/modelfiles/edit/+page.svelte +++ b/src/routes/(app)/modelfiles/edit/+page.svelte @@ -324,7 +324,7 @@
@@ -337,7 +337,7 @@
@@ -411,7 +411,7 @@
diff --git a/src/routes/(app)/prompts/create/+page.svelte b/src/routes/(app)/prompts/create/+page.svelte index e0926ae4..7b57e8a0 100644 --- a/src/routes/(app)/prompts/create/+page.svelte +++ b/src/routes/(app)/prompts/create/+page.svelte @@ -134,7 +134,7 @@
@@ -152,21 +152,22 @@
- Only alphanumeric characters and hyphens{$i18n.t('alphanumeric characters and hyphens')} - are allowed; Activate this command by typing " /{command} - " to chat input. + "  {$i18n.t('to chat input.')}
@@ -179,7 +180,9 @@