Browse Source

contribution info in the settings

Jannik Streidl 1 year ago
parent
commit
f5afb0ca52

+ 13 - 1
src/lib/components/chat/Settings/General.svelte

@@ -131,7 +131,7 @@
 				<div class=" self-center text-xs font-medium">{$i18n.t('Language')}</div>
 				<div class="flex items-center relative">
 					<select
-						class="dark:bg-gray-900 w-fit pr-8 rounded py-2 px-2 text-xs bg-transparent outline-none text-right"
+						class="dark:bg-gray-900 w-fit pr-8 rounded pt-2 pl-2 text-xs bg-transparent outline-none text-right"
 						bind:value={lang}
 						placeholder="Select a language"
 						on:change={(e) => {
@@ -144,6 +144,18 @@
 					</select>
 				</div>
 			</div>
+			<div class="mb-2 text-xs text-gray-400 dark:text-gray-500">
+				{$i18n.t("Didn't find your language?")}
+				<br />
+				{$i18n.t('You can help us translate the WebUI.')}
+				<a
+					class=" text-gray-300 font-medium"
+					href="https://github.com/open-webui/open-webui/blob/main/docs/CONTRIBUTING.md#-translations-and-internationalization"
+					target="_blank"
+				>
+					{$i18n.t('Click here for a contribution guide.')}
+				</a>
+			</div>
 
 			<div>
 				<div class=" py-0.5 flex w-full justify-between">

+ 6 - 3
src/lib/i18n/locales/de/translation.json

@@ -57,6 +57,7 @@
 	"Chunk Overlap": "Chunk Overlap",
 	"Chunk Params": "Chunk Parameter",
 	"Chunk Size": "Chunk Size",
+	"Click here for a contribution guide.": "Klicke hier für eine Anleitung dazu.",
 	"Click here for help": "Klicke hier für Hilfe",
 	"Click here to check other modelfiles.": "Klicke hier, um andere Modelfiles zu überprüfen.",
 	"click here.": "hier klicken.",
@@ -72,6 +73,7 @@
 	"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 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 Account": "Konto erstellen",
 	"Created at": "Erstellt am",
@@ -87,7 +89,6 @@
 	"Default (Web API)": "Standard (Web-API)",
 	"Default model updated": "Standardmodell aktualisiert",
 	"Default Prompt Suggestions": "Standard-Prompt-Vorschläge",
-	"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:",
 	"Default User Role": "Standardbenutzerrolle",
 	"delete": "löschen",
 	"Delete a model": "Ein Modell löschen",
@@ -97,6 +98,7 @@
 	"Deleted {tagName}": "{tagName} gelöscht",
 	"Description": "Beschreibung",
 	"Desktop Notifications": "Desktop-Benachrichtigungen",
+	"Didn't find your language?": "Deine Sprache nicht gefunden?",
 	"Disabled": "Deaktiviert",
 	"Discover a modelfile": "Eine Modelfiles entdecken",
 	"Discover a prompt": "Einen Prompt entdecken",
@@ -321,6 +323,7 @@
 	"Whisper (Local)": "Whisper (Lokal)",
 	"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.",
-	"You're a helpful assistant.": "Du bist ein hilfreicher Assistent.",
-	"You": "Du"
+	"You": "Du",
+	"You can help us translate the WebUI.": "Du kannst uns bei der Übersetzung der WebUI helfen.",
+	"You're a helpful assistant.": "Du bist ein hilfreicher Assistent."
 }

+ 4 - 1
src/lib/i18n/locales/en/translation.json

@@ -57,6 +57,7 @@
 	"Chunk Overlap": "Chunk Overlap",
 	"Chunk Params": "Chunk Params",
 	"Chunk Size": "Chunk Size",
+	"Click here for a contribution guide.": "Click here for a contribution guide.",
 	"Click here for help": "Click here for help",
 	"Click here to check other modelfiles.": "Click here to check other modelfiles.",
 	"click here.": "click here.",
@@ -72,6 +73,7 @@
 	"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 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':": "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':",
 	"Create a modelfile": "Create a modelfile",
 	"Create Account": "Create Account",
 	"Created at": "Created at",
@@ -87,7 +89,6 @@
 	"Default (Web API)": "Default (Web API)",
 	"Default model updated": "Default model updated",
 	"Default Prompt Suggestions": "Default Prompt Suggestions",
-	"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':": "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",
 	"delete": "delete",
 	"Delete a model": "Delete a model",
@@ -97,6 +98,7 @@
 	"Deleted {tagName}": "Deleted {tagName}",
 	"Description": "Description",
 	"Desktop Notifications": "Notification",
+	"Didn't find your language?": "Didn't find your language?",
 	"Disabled": "Disabled",
 	"Discover a modelfile": "Discover a modelfile",
 	"Discover a prompt": "Discover a prompt",
@@ -321,6 +323,7 @@
 	"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 can help us translate the WebUI.": "You can help us translate the WebUI.",
 	"You're a helpful assistant.": "You're a helpful assistant.",
 	"You're now logged in.": "You're now logged in."
 }