Преглед изворни кода

sidebar tooltop translation

Jannik Streidl пре 1 година
родитељ
комит
4d67dd977d

+ 5 - 1
src/lib/components/layout/Sidebar.svelte

@@ -707,7 +707,11 @@
 	<div
 		class="fixed left-0 top-[50dvh] z-40 -translate-y-1/2 transition-transform translate-x-[255px] md:translate-x-[260px] rotate-0"
 	>
-		<Tooltip placement="right" content={`${show ? 'Close' : 'Open'} sidebar`} touch={false}>
+		<Tooltip
+			placement="right"
+			content={`${show ? $i18n.t('Close') : $i18n.t('Open')} ${$i18n.t('sidebar')}`}
+			touch={false}
+		>
 			<button
 				id="sidebar-toggle-button"
 				class=" group"

+ 3 - 0
src/lib/i18n/locales/de/common.json

@@ -57,6 +57,7 @@
 	"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.",
+	"Close": "Schließe",
 	"Collection": "Kollektion",
 	"Command": "Befehl",
 	"Confirm Password": "Passwort bestätigen",
@@ -198,6 +199,7 @@
 	"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.",
+	"Open": "Öffne",
 	"Open AI": "Open AI",
 	"Open new chat": "Neuen Chat öffnen",
 	"OpenAI API": "OpenAI-API",
@@ -254,6 +256,7 @@
 	"short-summary": "kurze-zusammenfassung",
 	"Show": "Anzeigen",
 	"Show shortcuts": "Verknüpfungen anzeigen",
+	"sidebar": "Seitenleiste",
 	"Sign in": "Anmelden",
 	"Sign Out": "Abmelden",
 	"Sign up": "Registrieren",

+ 3 - 0
src/lib/i18n/locales/en/common.json

@@ -57,6 +57,7 @@
 	"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.",
+	"Close": "Close",
 	"Collection": "Collection",
 	"Command": "Command",
 	"Confirm Password": "Confirm Password",
@@ -198,6 +199,7 @@
 	"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.",
+	"Open": "Open",
 	"Open AI": "Open AI",
 	"Open new chat": "Open new chat",
 	"OpenAI API": "OpenAI API",
@@ -254,6 +256,7 @@
 	"short-summary": "short-summary",
 	"Show": "Show",
 	"Show shortcuts": "Show shortcuts",
+	"sidebar": "sidebar",
 	"Sign in": "Sign in",
 	"Sign Out": "Sign Out",
 	"Sign up": "Sign up",

+ 4 - 1
src/lib/i18n/locales/fa/common.json

@@ -308,5 +308,8 @@
 	"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"
+	"Add a short title for this prompt": "Add a short title for this prompt",
+	"Open": "Open",
+	"Close": "Close",
+	"sidebar": "sidebar"
 }