forked from open-webui/open-webui
		
	Add more translations
This commit is contained in:
		
							parent
							
								
									90513941bc
								
							
						
					
					
						commit
						c7ca7d03ee
					
				
					 13 changed files with 79 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -143,7 +143,7 @@
 | 
			
		|||
						const url = await getGravatarUrl($user.email);
 | 
			
		||||
 | 
			
		||||
						profileImageUrl = url;
 | 
			
		||||
					}}>Use Gravatar</button
 | 
			
		||||
					}}>{$i18n.t('Use Gravatar')}</button
 | 
			
		||||
				>
 | 
			
		||||
			</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
								>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue