forked from open-webui/open-webui
		
	fix: use translation key as fallback + more translations
This commit is contained in:
		
							parent
							
								
									b5b860f575
								
							
						
					
					
						commit
						66342140a3
					
				
					 8 changed files with 11 additions and 9 deletions
				
			
		|  | @ -770,7 +770,7 @@ | |||
| 		if ($settings.titleAutoGenerate ?? true) { | ||||
| 			const title = await generateTitle( | ||||
| 				localStorage.token, | ||||
| 				$settings?.titleGenerationPrompt ?? $i18n.t('Default titleGenerationPromt') + ' {{prompt}}', | ||||
| 				$settings?.titleGenerationPrompt ?? $i18n.t("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':") + ' {{prompt}}', | ||||
| 				$settings?.titleAutoGenerateModel ?? selectedModels[0], | ||||
| 				userPrompt | ||||
| 			); | ||||
|  |  | |||
|  | @ -779,7 +779,7 @@ | |||
| 		if ($settings.titleAutoGenerate ?? true) { | ||||
| 			const title = await generateTitle( | ||||
| 				localStorage.token, | ||||
| 				$settings?.titleGenerationPrompt ?? $i18n.t('Default titleGenerationPromt') + ' {{prompt}}', | ||||
| 				$settings?.titleGenerationPrompt ?? $i18n.t("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':") + ' {{prompt}}', | ||||
| 				$settings?.titleAutoGenerateModel ?? selectedModels[0], | ||||
| 				userPrompt | ||||
| 			); | ||||
|  |  | |||
|  | @ -116,7 +116,7 @@ | |||
| 					<div> | ||||
| 						<input | ||||
| 							class="px-3 py-1.5 text-sm w-full bg-transparent border dark:border-gray-600 outline-none rounded-lg" | ||||
| 							placeholder="Add a short title for this prompt" | ||||
| 							placeholder={$i18n.t('Add a short title for this prompt')} | ||||
| 							bind:value={title} | ||||
| 							required | ||||
| 						/> | ||||
|  | @ -163,7 +163,9 @@ | |||
| 						<div> | ||||
| 							<textarea | ||||
| 								class="px-3 py-1.5 text-sm w-full bg-transparent border dark:border-gray-600 outline-none rounded-lg" | ||||
| 								placeholder={`Write a summary in 50 words that summarizes [topic or keyword].`} | ||||
| 								placeholder={$i18n.t( | ||||
| 									`Write a summary in 50 words that summarizes [topic or keyword].` | ||||
| 								)} | ||||
| 								rows="6" | ||||
| 								bind:value={content} | ||||
| 								required | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ased Mammad
						Ased Mammad