소스 검색

Add more translations

Ased Mammad 1 년 전
부모
커밋
c7ca7d03ee

+ 1 - 1
src/lib/components/chat/Settings/Account.svelte

@@ -143,7 +143,7 @@
 						const url = await getGravatarUrl($user.email);
 
 						profileImageUrl = url;
-					}}>Use Gravatar</button
+					}}>{$i18n.t('Use Gravatar')}</button
 				>
 			</div>
 

+ 1 - 1
src/lib/components/chat/Settings/Audio.svelte

@@ -227,7 +227,7 @@
 							bind:value={speaker}
 							placeholder="Select a voice"
 						>
-							<option value="" selected>Default</option>
+							<option value="" selected>{$i18n.t('Default')}</option>
 							{#each voices.filter((v) => v.localService === true) as voice}
 								<option value={voice.name} class="bg-gray-100 dark:bg-gray-700">{voice.name}</option
 								>

+ 1 - 1
src/lib/components/chat/Settings/Chats.svelte

@@ -232,7 +232,7 @@
 							clip-rule="evenodd"
 						/>
 					</svg>
-					<span>Are you sure?</span>
+					<span>{$i18n.t('Are you sure?')}</span>
 				</div>
 
 				<div class="flex space-x-1.5 items-center">

+ 1 - 1
src/lib/components/chat/Settings/Connections.svelte

@@ -156,7 +156,7 @@
 		<hr class=" dark:border-gray-700" />
 
 		<div>
-			<div class=" mb-2.5 text-sm font-medium">Ollama Base URL</div>
+			<div class=" mb-2.5 text-sm font-medium">{$i18n.t('Ollama Base URL')}</div>
 			<div class="flex w-full gap-1.5">
 				<div class="flex-1 flex flex-col gap-2">
 					{#each OLLAMA_BASE_URLS as url, idx}

+ 11 - 8
src/lib/components/chat/Settings/Models.svelte

@@ -422,7 +422,9 @@
 							<div class="flex-1 mr-2">
 								<input
 									class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
-									placeholder="Enter model tag (e.g. mistral:7b)"
+									placeholder={$i18n.t('Enter model tag (e.g. {{modelTag}})', {
+										modelTag: 'mistral:7b'
+									})}
 									bind:value={modelTag}
 								/>
 							</div>
@@ -478,10 +480,11 @@
 						</div>
 
 						<div class="mt-2 mb-1 text-xs text-gray-400 dark:text-gray-500">
-							To access the available model names for downloading, <a
+							{$i18n.t('To access the available model names for downloading,')}
+							<a
 								class=" text-gray-500 dark:text-gray-300 font-medium underline"
 								href="https://ollama.com/library"
-								target="_blank">click here.</a
+								target="_blank">{$i18n.t('click here.')}</a
 							>
 						</div>
 
@@ -506,16 +509,16 @@
 					</div>
 
 					<div>
-						<div class=" mb-2 text-sm font-medium">Delete a model</div>
+						<div class=" mb-2 text-sm font-medium">{$i18n.t('Delete a model')}</div>
 						<div class="flex w-full">
 							<div class="flex-1 mr-2">
 								<select
 									class="w-full rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none"
 									bind:value={deleteModelTag}
-									placeholder="Select a model"
+									placeholder={$i18n.t('Select a model')}
 								>
 									{#if !deleteModelTag}
-										<option value="" disabled selected>Select a model</option>
+										<option value="" disabled selected>{$i18n.t('Select a model')}</option>
 									{/if}
 									{#each $models.filter((m) => m.size != null && (selectedOllamaUrlIdx === null ? true : (m?.urls ?? []).includes(selectedOllamaUrlIdx))) as model}
 										<option value={model.name} class="bg-gray-100 dark:bg-gray-700"
@@ -612,7 +615,7 @@
 												{#if modelInputFile && modelInputFile.length > 0}
 													{modelInputFile[0].name}
 												{:else}
-													Click here to select
+													{$i18n.t('Click here to select')}
 												{/if}
 											</button>
 										</div>
@@ -626,7 +629,7 @@
 												type="url"
 												required
 												bind:value={modelFileUrl}
-												placeholder="Type Hugging Face Resolve (Download) URL"
+												placeholder={$i18n.t('Type Hugging Face Resolve (Download) URL')}
 											/>
 										</div>
 									{/if}

+ 1 - 1
src/lib/components/documents/AddDocModal.svelte

@@ -147,7 +147,7 @@
 							{#if inputFiles}
 								{inputFiles.length > 0 ? `${inputFiles.length}` : ''} document(s) selected.
 							{:else}
-								Click here to select documents.
+								{$i18n.t('Click here to select documents.')}
 							{/if}
 						</button>
 					</div>

+ 5 - 5
src/lib/components/documents/Settings/General.svelte

@@ -139,7 +139,7 @@
 						<input
 							class=" w-full rounded py-1.5 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none border border-gray-100 dark:border-gray-600"
 							type="number"
-							placeholder="Enter Chunk Size"
+							placeholder={$i18n.t('Enter Chunk Size')}
 							bind:value={chunkSize}
 							autocomplete="off"
 							min="0"
@@ -154,7 +154,7 @@
 						<input
 							class="w-full rounded py-1.5 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none border border-gray-100 dark:border-gray-600"
 							type="number"
-							placeholder="Enter Chunk Overlap"
+							placeholder={$i18n.t('Enter Chunk Overlap')}
 							bind:value={chunkOverlap}
 							autocomplete="off"
 							min="0"
@@ -163,17 +163,17 @@
 				</div>
 			</div>
 
-			<div class=" text-sm font-medium">Query Params</div>
+			<div class=" text-sm font-medium">{$i18n.t('Query Params')}</div>
 
 			<div class=" flex">
 				<div class="  flex w-full justify-between">
-					<div class="self-center text-xs font-medium flex-1">Top K</div>
+					<div class="self-center text-xs font-medium flex-1">{$i18n.t('Top K')}</div>
 
 					<div class="self-center p-3">
 						<input
 							class=" w-full rounded py-1.5 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none border border-gray-100 dark:border-gray-600"
 							type="number"
-							placeholder="Enter Top K"
+							placeholder={$i18n.t('Enter Top K')}
 							bind:value={querySettings.k}
 							autocomplete="off"
 							min="0"

+ 11 - 0
src/lib/i18n/locales/de/translation.json

@@ -34,6 +34,7 @@
 	"API Key": "API Key",
 	"API RPM": "API RPM",
 	"are allowed - Activate this command by typing": "sind erlaubt - Aktiviere diesen Befehl, indem du",
+	"Are you sure?": "",
 	"Audio": "Audio",
 	"Auto-playback response": "Automatische Wiedergabe der Antwort",
 	"Auto-send input after 3 sec.": "Automatisches Senden der Eingabe nach 3 Sek",
@@ -57,6 +58,8 @@
 	"Chunk Size": "Chunk Size",
 	"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 to select": "",
+	"Click here to select documents.": "",
 	"click here.": "hier klicken.",
 	"Click on the user role button to change a user's role.": "Klicke auf die Benutzerrollenschaltfläche, um die Rolle eines Benutzers zu ändern.",
 	"Close": "Schließe",
@@ -117,7 +120,11 @@
 	"Enable Chat History": "Chat-Verlauf aktivieren",
 	"Enable New Sign Ups": "Neue Anmeldungen aktivieren",
 	"Enabled": "Aktiviert",
+	"Enter Chunk Overlap": "",
+	"Enter Chunk Size": "",
+	"Enter model tag (e.g. {{modelTag}})": "",
 	"Enter stop sequence": "Stop-Sequenz eingeben",
+	"Enter Top K": "",
 	"Enter Your Email": "Geben Deine E-Mail-Adresse ein",
 	"Enter Your Full Name": "Gebe Deinen vollständigen Namen ein",
 	"Enter Your Password": "Gebe Dein Passwort ein",
@@ -196,6 +203,7 @@
 	"Not sure what to write? Switch to": "Nicht sicher, was Du schreiben sollst? Wechsel zu",
 	"Off": "Aus",
 	"Okay, Let's Go!": "Okay, los geht's!",
+	"Ollama Base URL": "",
 	"Ollama Version": "Ollama-Version",
 	"On": "Ein",
 	"Only": "Nur",
@@ -219,6 +227,7 @@
 	"Prompts": "Prompts",
 	"Pull a model from Ollama.com": "Ein Modell von Ollama.com abrufen",
 	"Pull Progress": "Fortschritt abrufen",
+	"Query Params": "",
 	"RAG Template": "RAG-Vorlage",
 	"Raw Format": "Rohformat",
 	"Record voice": "Stimme aufnehmen",
@@ -300,6 +309,7 @@
 	"Top P": "Top P",
 	"Trouble accessing Ollama?": "Probleme beim Zugriff auf Ollama?",
 	"TTS Settings": "TTS-Einstellungen",
+	"Type Hugging Face Resolve (Download) URL": "",
 	"Uh-oh! There was an issue connecting to {{provider}}.": "Ups! Es gab ein Problem bei der Verbindung mit {{provider}}.",
 	"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Unknown File Type '{{file_type}}', but accepting and treating as plain text",
 	"Upload a GGUF model": "Upload a GGUF model",
@@ -307,6 +317,7 @@
 	"Upload Progress": "Upload Progress",
 	"URL Mode": "URL Mode",
 	"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": "",
 	"user": "Benutzer",
 	"User Permissions": "Benutzerberechtigungen",
 	"Users": "Benutzer",

+ 11 - 0
src/lib/i18n/locales/en/translation.json

@@ -34,6 +34,7 @@
 	"API Key": "API Key",
 	"API RPM": "API RPM",
 	"are allowed - Activate this command by typing": "are allowed - Activate this command by typing",
+	"Are you sure?": "",
 	"Audio": "Audio",
 	"Auto-playback response": "Auto-playback response",
 	"Auto-send input after 3 sec.": "Auto-send input after 3 sec.",
@@ -57,6 +58,8 @@
 	"Chunk Size": "Chunk Size",
 	"Click here for help": "Click here for help",
 	"Click here to check other modelfiles.": "Click here to check other modelfiles.",
+	"Click here to select": "",
+	"Click here to select documents.": "",
 	"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",
@@ -117,7 +120,11 @@
 	"Enable Chat History": "Enable Chat History",
 	"Enable New Sign Ups": "Enable New Sign Ups",
 	"Enabled": "Enabled",
+	"Enter Chunk Overlap": "",
+	"Enter Chunk Size": "",
+	"Enter model tag (e.g. {{modelTag}})": "",
 	"Enter stop sequence": "Enter stop sequence",
+	"Enter Top K": "",
 	"Enter Your Email": "Enter Your Email",
 	"Enter Your Full Name": "Enter Your Full Name",
 	"Enter Your Password": "Enter Your Password",
@@ -196,6 +203,7 @@
 	"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 Base URL": "",
 	"Ollama Version": "Ollama Version",
 	"On": "On",
 	"Only": "Only",
@@ -219,6 +227,7 @@
 	"Prompts": "Prompts",
 	"Pull a model from Ollama.com": "Pull a model from Ollama.com",
 	"Pull Progress": "Pull Progress",
+	"Query Params": "",
 	"RAG Template": "RAG Template",
 	"Raw Format": "Raw Format",
 	"Record voice": "Record voice",
@@ -300,6 +309,7 @@
 	"Top P": "Top P",
 	"Trouble accessing Ollama?": "Trouble accessing Ollama?",
 	"TTS Settings": "TTS Settings",
+	"Type Hugging Face Resolve (Download) URL": "",
 	"Uh-oh! There was an issue connecting to {{provider}}.": "Uh-oh! There was an issue connecting to {{provider}}.",
 	"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Unknown File Type '{{file_type}}', but accepting and treating as plain text",
 	"Upload a GGUF model": "Upload a GGUF model",
@@ -307,6 +317,7 @@
 	"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.",
+	"Use Gravatar": "",
 	"user": "user",
 	"User Permissions": "User Permissions",
 	"Users": "Users",

+ 12 - 1
src/lib/i18n/locales/fa/translation.json

@@ -34,6 +34,7 @@
 	"API Key": "API Key",
 	"API RPM": "API RPM",
 	"are allowed - Activate this command by typing": "مجاز هستند - این دستور را با تایپ کردن این فعال کنید:",
+	"Are you sure?": "آیا مطمئن هستید؟",
 	"Audio": "صدا",
 	"Auto-playback response": "پخش خودکار پاسخ ",
 	"Auto-send input after 3 sec.": "به طور خودکار ورودی را پس از 3 ثانیه ارسال کن.",
@@ -57,6 +58,8 @@
 	"Chunk Size": "اندازه تکه",
 	"Click here for help": "برای کمک اینجا را کلیک کنید",
 	"Click here to check other modelfiles.": "برای بررسی سایر فایل\u200cهای مدل اینجا را کلیک کنید.",
+	"Click here to select": "برای انتخاب اینجا کلیک کنید",
+	"Click here to select documents.": "برای انتخاب اسناد اینجا را کلیک کنید.",
 	"click here.": "اینجا کلیک کنید.",
 	"Click on the user role button to change a user's role.": "برای تغییر نقش کاربر، روی دکمه نقش کاربر کلیک کنید.",
 	"Close": "بسته",
@@ -117,7 +120,11 @@
 	"Enable Chat History": "تاریخچه چت را فعال کنید",
 	"Enable New Sign Ups": "فعال کردن ثبت نام\u200cهای جدید",
 	"Enabled": "فعال",
+	"Enter Chunk Overlap": "مقدار Chunk Overlap را وارد کنید",
+	"Enter Chunk Size": "مقدار Chunk Size را وارد کنید",
+	"Enter model tag (e.g. {{modelTag}})": "تگ مدل را وارد کنید (مثلا {{modelTag}})",
 	"Enter stop sequence": "توالی توقف را وارد کنید",
+	"Enter Top K": "مقدار Top K را وارد کنید",
 	"Enter Your Email": "ایمیل خود را وارد کنید",
 	"Enter Your Full Name": "نام کامل خود را وارد کنید",
 	"Enter Your Password": "رمز عبور خود را وارد کنید",
@@ -196,6 +203,7 @@
 	"Not sure what to write? Switch to": "مطمئن نیستید چه بنویسید؟ تغییر به",
 	"Off": "خاموش",
 	"Okay, Let's Go!": "باشه، بزن بریم!",
+	"Ollama Base URL": "URL پایه اولاما",
 	"Ollama Version": "نسخه اولاما",
 	"On": "روشن",
 	"Only": "فقط",
@@ -219,6 +227,7 @@
 	"Prompts": "پرامپت\u200cها",
 	"Pull a model from Ollama.com": "دریافت یک مدل از Ollama.com",
 	"Pull Progress": "پیشرفت دریافت",
+	"Query Params": "پارامترهای پرس و جو",
 	"RAG Template": "RAG الگوی",
 	"Raw Format": "فرمت خام",
 	"Record voice": "ضبط صدا",
@@ -300,13 +309,15 @@
 	"Top P": "Top P",
 	"Trouble accessing Ollama?": "در دسترسی به اولاما مشکل دارید؟",
 	"TTS Settings": "تنظیمات TTS",
+	"Type Hugging Face Resolve (Download) URL": "مقدار URL دانلود (Resolve) Hugging Face را وارد کنید",
 	"Uh-oh! There was an issue connecting to {{provider}}.": "اوه اوه! مشکلی در اتصال به {{provider}} وجود داشت.",
 	"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "نوع فایل '{{file_type}}' ناشناخته است، به عنوان یک فایل متنی ساده با آن برخورد می شود.",
 	"Upload a GGUF model": "آپلود یک مدل GGUF",
 	"Upload files": "بارگذاری فایل\u200cها",
 	"Upload Progress": "پیشرفت آپلود",
-	"URL Mode": "URL Mode",
+	"URL Mode": "حالت URL",
 	"Use '#' in the prompt input to load and select your documents.": "در پرامپت از '#' برای لود و انتخاب اسناد خود استفاده کنید.",
+	"Use Gravatar": "استفاده از گراواتار",
 	"user": "کاربر",
 	"User Permissions": "مجوزهای کاربر",
 	"Users": "کاربران",

+ 11 - 0
src/lib/i18n/locales/fr/translation.json

@@ -34,6 +34,7 @@
 	"API Key": "Clé API",
 	"API RPM": "RPM API",
 	"are allowed - Activate this command by typing": "sont autorisés - Activez cette commande en tapant",
+	"Are you sure?": "",
 	"Audio": "Audio",
 	"Auto-playback response": "Réponse en lecture automatique",
 	"Auto-send input after 3 sec.": "Envoyer automatiquement l'entrée après 3 sec.",
@@ -57,6 +58,8 @@
 	"Chunk Size": "Taille de bloc",
 	"Click here for help": "Cliquez ici pour obtenir de l'aide",
 	"Click here to check other modelfiles.": "Cliquez ici pour vérifier d'autres fichiers de modèle.",
+	"Click here to select": "",
+	"Click here to select documents.": "",
 	"click here.": "cliquez ici.",
 	"Click on the user role button to change a user's role.": "Cliquez sur le bouton de rôle d'utilisateur pour changer le rôle d'un utilisateur.",
 	"Close": "Fermer",
@@ -117,7 +120,11 @@
 	"Enable Chat History": "Activer l'historique du chat",
 	"Enable New Sign Ups": "Activer les nouvelles inscriptions",
 	"Enabled": "Activé",
+	"Enter Chunk Overlap": "",
+	"Enter Chunk Size": "",
+	"Enter model tag (e.g. {{modelTag}})": "",
 	"Enter stop sequence": "Entrez la séquence d'arrêt",
+	"Enter Top K": "",
 	"Enter Your Email": "Entrez votre email",
 	"Enter Your Full Name": "Entrez votre nom complet",
 	"Enter Your Password": "Entrez votre mot de passe",
@@ -196,6 +203,7 @@
 	"Not sure what to write? Switch to": "Vous ne savez pas quoi écrire ? Basculer vers",
 	"Off": "Désactivé",
 	"Okay, Let's Go!": "D'accord, allons-y !",
+	"Ollama Base URL": "",
 	"Ollama Version": "Version Ollama",
 	"On": "Activé",
 	"Only": "Seulement",
@@ -219,6 +227,7 @@
 	"Prompts": "Prompts",
 	"Pull a model from Ollama.com": "Tirer un modèle de Ollama.com",
 	"Pull Progress": "Progression du tirage",
+	"Query Params": "",
 	"RAG Template": "Modèle RAG",
 	"Raw Format": "Format brut",
 	"Record voice": "Enregistrer la voix",
@@ -300,6 +309,7 @@
 	"Top P": "Top P",
 	"Trouble accessing Ollama?": "Problèmes d'accès à Ollama ?",
 	"TTS Settings": "Paramètres TTS",
+	"Type Hugging Face Resolve (Download) URL": "",
 	"Uh-oh! There was an issue connecting to {{provider}}.": "Uh-oh ! Il y a eu un problème de connexion à {{provider}}.",
 	"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Unknown File Type '{{file_type}}', but accepting and treating as plain text",
 	"Upload a GGUF model": "Upload a GGUF model",
@@ -307,6 +317,7 @@
 	"Upload Progress": "Upload Progress",
 	"URL Mode": "URL Mode",
 	"Use '#' in the prompt input to load and select your documents.": "Utilisez '#' dans l'entrée du prompt pour charger et sélectionner vos documents.",
+	"Use Gravatar": "",
 	"user": "Utilisateur",
 	"User Permissions": "Permissions d'utilisateur",
 	"Users": "Utilisateurs",

+ 11 - 0
src/lib/i18n/locales/uk/translation.json

@@ -34,6 +34,7 @@
 	"API Key": "Ключ API",
 	"API RPM": "API RPM",
 	"are allowed - Activate this command by typing": "дозволено - активізуйте цю команду набором",
+	"Are you sure?": "",
 	"Audio": "Аудіо",
 	"Auto-playback response": "Автоматичне відтворення відповіді",
 	"Auto-send input after 3 sec.": "Автоматична відправка вводу через 3 сек.",
@@ -57,6 +58,8 @@
 	"Chunk Size": "Розмір фрагменту",
 	"Click here for help": "Клацніть тут, щоб отримати допомогу",
 	"Click here to check other modelfiles.": "Клацніть тут, щоб перевірити інші modelfiles.",
+	"Click here to select": "",
+	"Click here to select documents.": "",
 	"click here.": "клацніть тут.",
 	"Click on the user role button to change a user's role.": "Натисніть кнопку ролі користувача, щоб змінити роль користувача.",
 	"Close": "Закрити",
@@ -117,7 +120,11 @@
 	"Enable Chat History": "Увімкнути історію чату",
 	"Enable New Sign Ups": "Дозволити нові реєстрації",
 	"Enabled": "Увімкнено",
+	"Enter Chunk Overlap": "",
+	"Enter Chunk Size": "",
+	"Enter model tag (e.g. {{modelTag}})": "",
 	"Enter stop sequence": "Введіть символ зупинки",
+	"Enter Top K": "",
 	"Enter Your Email": "Введіть вашу електронну пошту",
 	"Enter Your Full Name": "Введіть ваше повне ім'я",
 	"Enter Your Password": "Введіть ваш пароль",
@@ -196,6 +203,7 @@
 	"Not sure what to write? Switch to": "Не впевнений, що писати? Переключитися на",
 	"Off": "Вимк",
 	"Okay, Let's Go!": "Гаразд, давайте почнемо!",
+	"Ollama Base URL": "",
 	"Ollama Version": "Версія Ollama",
 	"On": "Увімк",
 	"Only": "Тільки",
@@ -219,6 +227,7 @@
 	"Prompts": "Запити",
 	"Pull a model from Ollama.com": "Завантажити модель з Ollama.com",
 	"Pull Progress": "Прогрес завантаження",
+	"Query Params": "",
 	"RAG Template": "Шаблон RAG",
 	"Raw Format": "Необроблений формат",
 	"Record voice": "Записати голос",
@@ -300,6 +309,7 @@
 	"Top P": "Top P",
 	"Trouble accessing Ollama?": "Проблеми з доступом до Ollama?",
 	"TTS Settings": "Налаштування TTS",
+	"Type Hugging Face Resolve (Download) URL": "",
 	"Uh-oh! There was an issue connecting to {{provider}}.": "Ой! Виникла проблема при підключенні до {{provider}}.",
 	"Unknown File Type '{{file_type}}', but accepting and treating as plain text": "Невідомий тип файлу '{{file_type}}', але приймається та обробляється як звичайний текст",
 	"Upload a GGUF model": "Завантажити GGUF модель",
@@ -307,6 +317,7 @@
 	"Upload Progress": "Прогрес завантаження",
 	"URL Mode": "Режим URL",
 	"Use '#' in the prompt input to load and select your documents.": "Для введення запитів до веб-сторінок (URL) або вибору документів, будь ласка, використовуйте символ '#'.",
+	"Use Gravatar": "",
 	"user": "Користувач",
 	"User Permissions": "Дозволи користувача",
 	"Users": "Користувачі",

+ 2 - 2
src/routes/(app)/+layout.svelte

@@ -250,7 +250,7 @@
 									on:click={async () => {
 										localStorage.removeItem('token');
 										location.href = '/auth';
-									}}>Sign Out</button
+									}}>{$i18n.t('Sign Out')}</button
 								>
 							</div>
 						</div>
@@ -302,7 +302,7 @@
 									class="text-xs text-center w-full mt-2 text-gray-400 underline"
 									on:click={async () => {
 										localDBChats = [];
-									}}>Close</button
+									}}>{$i18n.t('Close')}</button
 								>
 							</div>
 						</div>