瀏覽代碼

💄Fix format

💄Fix format
Clivia 9 月之前
父節點
當前提交
b01d72ade3
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 1 5
      src/lib/components/chat/MessageInput.svelte
  2. 3 0
      src/lib/i18n/locales/ro-RO/translation.json

+ 1 - 5
src/lib/components/chat/MessageInput.svelte

@@ -185,11 +185,7 @@
 		const totalFilesCount = currentFilesCount + inputFilesCount;
 
 		if (currentFilesCount >= maxFiles || totalFilesCount > maxFiles) {
-			toast.error(
-				$i18n.t('File count exceeds the limit of {{size}}', {
-					count: maxFiles
-				})
-			);
+			toast.error(`File count exceeds the limit of '${maxFiles}'. Please remove some files.`);
 			if (currentFilesCount >= maxFiles) {
 				return [false, null];
 			}

+ 3 - 0
src/lib/i18n/locales/ro-RO/translation.json

@@ -285,6 +285,7 @@
 	"File": "Fișier",
 	"File Mode": "Mod Fișier",
 	"File not found.": "Fișierul nu a fost găsit.",
+	"File size exceeds the limit of {{size}}MB": "",
 	"Files": "Fișiere",
 	"Filter is now globally disabled": "Filtrul este acum dezactivat global",
 	"Filter is now globally enabled": "Filtrul este acum activat global",
@@ -374,6 +375,8 @@
 	"Manage Ollama Models": "Gestionează Modelele Ollama",
 	"Manage Pipelines": "Gestionează Conductele",
 	"March": "Martie",
+	"Max File Count": "",
+	"Max File Size(MB)": "",
 	"Max Tokens (num_predict)": "Număr Maxim de Tokeni (num_predict)",
 	"Maximum of 3 models can be downloaded simultaneously. Please try again later.": "Maxim 3 modele pot fi descărcate simultan. Vă rugăm să încercați din nou mai târziu.",
 	"May": "Mai",