Merge pull request #1874 from jannikstdl/update-i18n

Added some i18n keys & updated german locale
This commit is contained in:
Timothy Jaeryang Baek 2024-05-06 12:57:42 -07:00 committed by GitHub
commit 6fa88854e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 44 additions and 28 deletions

View File

@ -82,7 +82,7 @@
</div> </div>
{:else} {:else}
<div class=" self-center disabled:text-gray-600 disabled:hover:text-gray-600 mr-2"> <div class=" self-center disabled:text-gray-600 disabled:hover:text-gray-600 mr-2">
<Tooltip content="Remove Model"> <Tooltip content={$i18n.t('Remove Model')}>
<button <button
{disabled} {disabled}
on:click={() => { on:click={() => {

View File

@ -305,7 +305,7 @@
{:else} {:else}
<div> <div>
<div class="block px-3 py-2 text-sm text-gray-700 dark:text-gray-100"> <div class="block px-3 py-2 text-sm text-gray-700 dark:text-gray-100">
No results found {$i18n.t('No results found')}
</div> </div>
</div> </div>
{/each} {/each}
@ -317,7 +317,8 @@
pullModelHandler(); pullModelHandler();
}} }}
> >
Pull "{searchValue}" from Ollama.com {$i18n.t(`Pull "{{searchValue}}" from Ollama.com`, { searchValue: searchValue })}
</button> </button>
{/if} {/if}

View File

@ -447,7 +447,7 @@
{/if} {/if}
</button> </button>
<Tooltip content="Create new key"> <Tooltip content={$i18n.t('Create new key')}>
<button <button
class=" px-1.5 py-1 dark:hover:bg-gray-850transition rounded-lg" class=" px-1.5 py-1 dark:hover:bg-gray-850transition rounded-lg"
on:click={() => { on:click={() => {
@ -479,7 +479,7 @@
> >
<Plus strokeWidth="2" className=" size-3.5" /> <Plus strokeWidth="2" className=" size-3.5" />
Create new secret key</button {$i18n.t('Create new secret key')}</button
> >
{/if} {/if}
</div> </div>

View File

@ -164,7 +164,7 @@
<div class="flex gap-1.5"> <div class="flex gap-1.5">
<input <input
class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none" class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
placeholder="Enter URL (e.g. http://localhost:11434)" placeholder={$i18n.t('Enter URL (e.g. http://localhost:11434)')}
bind:value={url} bind:value={url}
/> />

View File

@ -97,9 +97,9 @@
<div class=" text-sm dark:text-gray-300 mb-1"> <div class=" text-sm dark:text-gray-300 mb-1">
{#if chat.share_id} {#if chat.share_id}
<a href="/s/{chat.share_id}" target="_blank" <a href="/s/{chat.share_id}" target="_blank"
>You have shared this chat <span class=" underline">before</span>.</a >{$i18n.t("You have shared this chat")} <span class=" underline">{$i18n.t("before")}</span>.</a
> >
Click here to {$i18n.t("Click here to")}
<button <button
class="underline" class="underline"
on:click={async () => { on:click={async () => {
@ -108,11 +108,10 @@
if (res) { if (res) {
chat = await getChatById(localStorage.token, chatId); chat = await getChatById(localStorage.token, chatId);
} }
}}>delete this link</button }}>{$i18n.t("delete this link")} </button
> and create a new shared link. > {$i18n.t("and create a new shared link.")}
{:else} {:else}
Messages you send after creating your link won't be shared. Users with the URL will be {$i18n.t("Messages you send after creating your link won't be shared. Users with the URL will beable to view the shared chat.")}
able to view the shared chat.
{/if} {/if}
</div> </div>

View File

@ -419,7 +419,7 @@
await chats.set(await getChatList(localStorage.token)); await chats.set(await getChatList(localStorage.token));
}} }}
> >
all {$i18n.t('all')}
</button> </button>
{#each $tags as tag} {#each $tags as tag}
<button <button

View File

@ -161,7 +161,7 @@
{/each} --> {/each} -->
</div> </div>
{:else} {:else}
<div class="text-left text-sm w-full mb-8">You have no archived conversations.</div> <div class="text-left text-sm w-full mb-8">{$i18n.t('You have no archived conversations.')}</div>
{/if} {/if}
</div> </div>
</div> </div>

View File

@ -49,7 +49,7 @@
}} }}
> >
<Share /> <Share />
<div class="flex items-center">Share</div> <div class="flex items-center">{$i18n.t('Share')}</div>
</DropdownMenu.Item> </DropdownMenu.Item>
<DropdownMenu.Item <DropdownMenu.Item
@ -59,7 +59,7 @@
}} }}
> >
<Pencil strokeWidth="2" /> <Pencil strokeWidth="2" />
<div class="flex items-center">Rename</div> <div class="flex items-center">{$i18n.t('Rename')}</div>
</DropdownMenu.Item> </DropdownMenu.Item>
<DropdownMenu.Item <DropdownMenu.Item
@ -69,7 +69,7 @@
}} }}
> >
<GarbageBin strokeWidth="2" /> <GarbageBin strokeWidth="2" />
<div class="flex items-center">Delete</div> <div class="flex items-center">{$i18n.t('Delete')}</div>
</DropdownMenu.Item> </DropdownMenu.Item>
<hr class="border-gray-100 dark:border-gray-800 mt-2.5 mb-1.5" /> <hr class="border-gray-100 dark:border-gray-800 mt-2.5 mb-1.5" />

View File

@ -35,6 +35,7 @@
"Already have an account?": "Hast du vielleicht schon ein Account?", "Already have an account?": "Hast du vielleicht schon ein Account?",
"an assistant": "ein Assistent", "an assistant": "ein Assistent",
"and": "und", "and": "und",
"and create a new shared link.": "und einen neuen geteilten Link zu erstellen.",
"API Base URL": "API Basis URL", "API Base URL": "API Basis URL",
"API Key": "API Key", "API Key": "API Key",
"API Key created.": "API Key erstellt", "API Key created.": "API Key erstellt",
@ -54,6 +55,7 @@
"available!": "verfügbar!", "available!": "verfügbar!",
"Back": "Zurück", "Back": "Zurück",
"Bad Response": "Schlechte Antwort", "Bad Response": "Schlechte Antwort",
"before": "",
"Being lazy": "Faul sein", "Being lazy": "Faul sein",
"Builder Mode": "Builder Modus", "Builder Mode": "Builder Modus",
"Cancel": "Abbrechen", "Cancel": "Abbrechen",
@ -71,6 +73,7 @@
"Chunk Params": "Chunk Parameter", "Chunk Params": "Chunk Parameter",
"Chunk Size": "Chunk Size", "Chunk Size": "Chunk Size",
"Click here for help.": "Klicke hier für Hilfe.", "Click here for help.": "Klicke hier für Hilfe.",
"Click here to": "Klicke hier, um",
"Click here to check other modelfiles.": "Klicke hier, um andere Modelfiles zu überprüfen.", "Click here to check other modelfiles.": "Klicke hier, um andere Modelfiles zu überprüfen.",
"Click here to select": "Klicke hier um auszuwählen", "Click here to select": "Klicke hier um auszuwählen",
"Click here to select a csv file.": "", "Click here to select a csv file.": "",
@ -93,11 +96,13 @@
"Copy": "Kopieren", "Copy": "Kopieren",
"Copy last code block": "Letzten Codeblock kopieren", "Copy last code block": "Letzten Codeblock kopieren",
"Copy last response": "Letzte Antwort kopieren", "Copy last response": "Letzte Antwort kopieren",
"Copy Link": "kopiere Link", "Copy Link": "Link kopieren",
"Copying to clipboard was successful!": "Das Kopieren in die Zwischenablage war erfolgreich!", "Copying to clipboard was successful!": "Das Kopieren in die Zwischenablage war erfolgreich!",
"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':": "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:", "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':": "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:",
"Create a modelfile": "Modelfiles erstellen", "Create a modelfile": "Modelfiles erstellen",
"Create Account": "Konto erstellen", "Create Account": "Konto erstellen",
"Create new key": "Neuen Schlüssel erstellen",
"Create new secret key": "Neuen API Schlüssel erstellen",
"Created at": "Erstellt am", "Created at": "Erstellt am",
"Created At": "Erstellt am", "Created At": "Erstellt am",
"Current Model": "Aktuelles Modell", "Current Model": "Aktuelles Modell",
@ -105,6 +110,7 @@
"Custom": "Benutzerdefiniert", "Custom": "Benutzerdefiniert",
"Customize Ollama models for a specific purpose": "Ollama-Modelle für einen bestimmten Zweck anpassen", "Customize Ollama models for a specific purpose": "Ollama-Modelle für einen bestimmten Zweck anpassen",
"Dark": "Dunkel", "Dark": "Dunkel",
"Dashboard": "",
"Database": "Datenbank", "Database": "Datenbank",
"DD/MM/YYYY HH:mm": "DD.MM.YYYY HH:mm", "DD/MM/YYYY HH:mm": "DD.MM.YYYY HH:mm",
"Default": "Standard", "Default": "Standard",
@ -120,6 +126,7 @@
"Delete chat": "Chat löschen", "Delete chat": "Chat löschen",
"Delete Chat": "Chat löschen", "Delete Chat": "Chat löschen",
"Delete Chats": "Chats löschen", "Delete Chats": "Chats löschen",
"delete this link": "diesen Link zu löschen",
"Delete User": "Benutzer löschen", "Delete User": "Benutzer löschen",
"Deleted {{deleteModelTag}}": "{{deleteModelTag}} gelöscht", "Deleted {{deleteModelTag}}": "{{deleteModelTag}} gelöscht",
"Deleted {{tagName}}": "{{tagName}} gelöscht", "Deleted {{tagName}}": "{{tagName}} gelöscht",
@ -147,7 +154,7 @@
"Edit User": "Benutzer bearbeiten", "Edit User": "Benutzer bearbeiten",
"Email": "E-Mail", "Email": "E-Mail",
"Embedding Model Engine": "", "Embedding Model Engine": "",
"Embedding model set to \"{{embedding_model}}\"": "Das Embedding Modell wurde auf \"{{embedding_model}}\" gesetzt", "Embedding model set to \"{{embedding_model}}\"": "",
"Enable Chat History": "Chat-Verlauf aktivieren", "Enable Chat History": "Chat-Verlauf aktivieren",
"Enable New Sign Ups": "Neue Anmeldungen aktivieren", "Enable New Sign Ups": "Neue Anmeldungen aktivieren",
"Enabled": "Aktiviert", "Enabled": "Aktiviert",
@ -167,6 +174,7 @@
"Enter stop sequence": "Stop-Sequenz eingeben", "Enter stop sequence": "Stop-Sequenz eingeben",
"Enter Top K": "Gib Top K ein", "Enter Top K": "Gib Top K ein",
"Enter URL (e.g. http://127.0.0.1:7860/)": "Gib die URL ein (z.B. http://127.0.0.1:7860/)", "Enter URL (e.g. http://127.0.0.1:7860/)": "Gib die URL ein (z.B. http://127.0.0.1:7860/)",
"Enter URL (e.g. http://localhost:11434)": "Gib die URL ein (z.B. http://localhost:11434)",
"Enter Your Email": "Gib deine E-Mail-Adresse ein", "Enter Your Email": "Gib deine E-Mail-Adresse ein",
"Enter Your Full Name": "Gib deinen vollständigen Namen ein", "Enter Your Full Name": "Gib deinen vollständigen Namen ein",
"Enter Your Password": "Gib dein Passwort ein", "Enter Your Password": "Gib dein Passwort ein",
@ -228,6 +236,7 @@
"Manage Ollama Models": "Ollama-Modelle verwalten", "Manage Ollama Models": "Ollama-Modelle verwalten",
"Max Tokens": "Maximale Tokens", "Max Tokens": "Maximale Tokens",
"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Es können maximal 3 Modelle gleichzeitig heruntergeladen werden. Bitte versuche es später erneut.", "Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Es können maximal 3 Modelle gleichzeitig heruntergeladen werden. Bitte versuche es später erneut.",
"Messages you send after creating your link won't be shared. Users with the URL will beable to view the shared chat.": "Fortlaudende Nachrichten in diesem Chat werden nicht automatisch geteilt. Benutzer mit dem Link können den Chat einsehen.",
"Minimum Score": "", "Minimum Score": "",
"Mirostat": "Mirostat", "Mirostat": "Mirostat",
"Mirostat Eta": "Mirostat Eta", "Mirostat Eta": "Mirostat Eta",
@ -258,6 +267,7 @@
"Name your modelfile": "Benenne dein modelfile", "Name your modelfile": "Benenne dein modelfile",
"New Chat": "Neuer Chat", "New Chat": "Neuer Chat",
"New Password": "Neues Passwort", "New Password": "Neues Passwort",
"No results found": "Keine Ergebnisse gefunden",
"Not factually correct": "Nicht sachlich korrekt.", "Not factually correct": "Nicht sachlich korrekt.",
"Not sure what to add?": "Nicht sicher, was hinzugefügt werden soll?", "Not sure what to add?": "Nicht sicher, was hinzugefügt werden soll?",
"Not sure what to write? Switch to": "Nicht sicher, was Du schreiben sollst? Wechsel zu", "Not sure what to write? Switch to": "Nicht sicher, was Du schreiben sollst? Wechsel zu",
@ -265,7 +275,7 @@
"Notifications": "Desktop-Benachrichtigungen", "Notifications": "Desktop-Benachrichtigungen",
"Off": "Aus", "Off": "Aus",
"Okay, Let's Go!": "Okay, los geht's!", "Okay, Let's Go!": "Okay, los geht's!",
"OLED Dark": "", "OLED Dark": "OLED Dunkel",
"Ollama": "", "Ollama": "",
"Ollama Base URL": "Ollama Basis URL", "Ollama Base URL": "Ollama Basis URL",
"Ollama Version": "Ollama-Version", "Ollama Version": "Ollama-Version",
@ -286,6 +296,7 @@
"OpenAI URL/Key required.": "OpenAI URL/Key erforderlich.", "OpenAI URL/Key required.": "OpenAI URL/Key erforderlich.",
"or": "oder", "or": "oder",
"Other": "Andere", "Other": "Andere",
"Overview": "Übersicht",
"Parameters": "Parameter", "Parameters": "Parameter",
"Password": "Passwort", "Password": "Passwort",
"PDF document (.pdf)": "PDF-Dokument (.pdf)", "PDF document (.pdf)": "PDF-Dokument (.pdf)",
@ -293,13 +304,14 @@
"pending": "ausstehend", "pending": "ausstehend",
"Permission denied when accessing microphone: {{error}}": "Zugriff auf das Mikrofon verweigert: {{error}}", "Permission denied when accessing microphone: {{error}}": "Zugriff auf das Mikrofon verweigert: {{error}}",
"Plain text (.txt)": "Nur Text (.txt)", "Plain text (.txt)": "Nur Text (.txt)",
"Playground": "Spielplatz", "Playground": "Testumgebung",
"Positive attitude": "Positive Einstellung", "Positive attitude": "Positive Einstellung",
"Profile Image": "Profilbild", "Profile Image": "Profilbild",
"Prompt (e.g. Tell me a fun fact about the Roman Empire)": "Prompt (z.B. Erzähle mir eine interessante Tatsache über das Römische Reich.", "Prompt (e.g. Tell me a fun fact about the Roman Empire)": "Prompt (z.B. Erzähle mir eine interessante Tatsache über das Römische Reich.",
"Prompt Content": "Prompt-Inhalt", "Prompt Content": "Prompt-Inhalt",
"Prompt suggestions": "Prompt-Vorschläge", "Prompt suggestions": "Prompt-Vorschläge",
"Prompts": "Prompts", "Prompts": "Prompts",
"Pull \"{{searchValue}}\" from Ollama.com": "\"{{searchValue}}\" von Ollama.com herunterladen",
"Pull a model from Ollama.com": "Ein Modell von Ollama.com abrufen", "Pull a model from Ollama.com": "Ein Modell von Ollama.com abrufen",
"Pull Progress": "Fortschritt abrufen", "Pull Progress": "Fortschritt abrufen",
"Query Params": "Query Parameter", "Query Params": "Query Parameter",
@ -312,6 +324,8 @@
"Regenerate": "Neu generieren", "Regenerate": "Neu generieren",
"Release Notes": "Versionshinweise", "Release Notes": "Versionshinweise",
"Remove": "Entfernen", "Remove": "Entfernen",
"Remove Model": "Modell entfernen",
"Rename": "Umbenennen",
"Repeat Last N": "Repeat Last N", "Repeat Last N": "Repeat Last N",
"Repeat Penalty": "Repeat Penalty", "Repeat Penalty": "Repeat Penalty",
"Request Mode": "Request-Modus", "Request Mode": "Request-Modus",
@ -331,7 +345,7 @@
"Scan complete!": "Scan abgeschlossen!", "Scan complete!": "Scan abgeschlossen!",
"Scan for documents from {{path}}": "Dokumente von {{path}} scannen", "Scan for documents from {{path}}": "Dokumente von {{path}} scannen",
"Search": "Suchen", "Search": "Suchen",
"Search a model": "Ein Modell suchen", "Search a model": "Nach einem Modell suchen",
"Search Documents": "Dokumente suchen", "Search Documents": "Dokumente suchen",
"Search Prompts": "Prompts suchen", "Search Prompts": "Prompts suchen",
"See readme.md for instructions": "Anleitung in readme.md anzeigen", "See readme.md for instructions": "Anleitung in readme.md anzeigen",
@ -419,8 +433,8 @@
"Upload Progress": "Upload Progress", "Upload Progress": "Upload Progress",
"URL Mode": "URL Modus", "URL Mode": "URL Modus",
"Use '#' in the prompt input to load and select your documents.": "Verwende '#' in der Prompt-Eingabe, um deine Dokumente zu laden und auszuwählen.", "Use '#' in the prompt input to load and select your documents.": "Verwende '#' in der Prompt-Eingabe, um deine Dokumente zu laden und auszuwählen.",
"Use Gravatar": "verwende Gravatar ", "Use Gravatar": "Gravatar verwenden",
"Use Initials": "verwende Initialen", "Use Initials": "Initialen verwenden",
"user": "Benutzer", "user": "Benutzer",
"User Permissions": "Benutzerberechtigungen", "User Permissions": "Benutzerberechtigungen",
"Users": "Benutzer", "Users": "Benutzer",
@ -441,6 +455,8 @@
"Write a prompt suggestion (e.g. Who are you?)": "Gebe einen Prompt-Vorschlag ein (z.B. Wer bist du?)", "Write a prompt suggestion (e.g. Who are you?)": "Gebe einen Prompt-Vorschlag ein (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.", "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": "Du", "You": "Du",
"You have no archived conversations.": "Du hast keine archivierten Unterhaltungen.",
"You have shared this chat": "Du hast diesen Chat",
"You're a helpful assistant.": "Du bist ein hilfreicher Assistent.", "You're a helpful assistant.": "Du bist ein hilfreicher Assistent.",
"You're now logged in.": "Du bist nun eingeloggt.", "You're now logged in.": "Du bist nun eingeloggt.",
"Youtube": "" "Youtube": ""

View File

@ -110,7 +110,7 @@
<div class=" flex flex-col justify-center"> <div class=" flex flex-col justify-center">
<div class=" px-6 pt-4"> <div class=" px-6 pt-4">
<div class=" flex justify-between items-center"> <div class=" flex justify-between items-center">
<div class="flex items-center text-2xl font-semibold">Dashboard</div> <div class="flex items-center text-2xl font-semibold">{$i18n.t('Dashboard')}</div>
<div> <div>
<Tooltip content={$i18n.t('Admin Settings')}> <Tooltip content={$i18n.t('Admin Settings')}>
<button <button
@ -140,8 +140,8 @@
</div> </div>
</div> </div>
<div class="px-6 flex text-sm gap-2.5"> <div class="px-5 flex text-sm gap-2.5">
<div class="py-3 border-b font-medium text-gray-100 cursor-pointer">Overview</div> <div class="py-3 border-b font-medium text-gray-100 cursor-pointer">{$i18n.t('Overview')}</div>
<!-- <div class="py-3 text-gray-300 cursor-pointer">Users</div> --> <!-- <div class="py-3 text-gray-300 cursor-pointer">Users</div> -->
</div> </div>
@ -268,7 +268,7 @@
<td class="px-3 py-2 text-right"> <td class="px-3 py-2 text-right">
<div class="flex justify-end w-full"> <div class="flex justify-end w-full">
{#if user.role !== 'admin'} {#if user.role !== 'admin'}
<Tooltip content="Chats"> <Tooltip content={$i18n.t('Chats')}>
<button <button
class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl" class="self-center w-fit text-sm px-2 py-2 hover:bg-black/5 dark:hover:bg-white/5 rounded-xl"
on:click={async () => { on:click={async () => {