forked from open-webui/open-webui
		
	more translations
This commit is contained in:
		
							parent
							
								
									304006aa8c
								
							
						
					
					
						commit
						3fe5f00114
					
				
					 24 changed files with 173 additions and 60 deletions
				
			
		| 
						 | 
				
			
			@ -58,9 +58,9 @@
 | 
			
		|||
							target="_blank"
 | 
			
		||||
						>
 | 
			
		||||
							{updateAvailable === null
 | 
			
		||||
								? 'Checking for updates...'
 | 
			
		||||
								? $i18n.t('Checking for updates...')
 | 
			
		||||
								: updateAvailable
 | 
			
		||||
								? `(v${version.latest} available!)`
 | 
			
		||||
								? `(v${version.latest} ${$i18n.t('available!')})`
 | 
			
		||||
								: '(latest)'}
 | 
			
		||||
						</a>
 | 
			
		||||
					</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -71,7 +71,7 @@
 | 
			
		|||
							showChangelog.set(true);
 | 
			
		||||
						}}
 | 
			
		||||
					>
 | 
			
		||||
						<div>See what's new</div>
 | 
			
		||||
						<div>{$i18n.t("See what's new")}</div>
 | 
			
		||||
					</button>
 | 
			
		||||
				</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -81,7 +81,7 @@
 | 
			
		|||
						checkForVersionUpdates();
 | 
			
		||||
					}}
 | 
			
		||||
				>
 | 
			
		||||
					Check for updates
 | 
			
		||||
					{$i18n.t('Check for updates')}
 | 
			
		||||
				</button>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -125,7 +125,8 @@
 | 
			
		|||
		</div>
 | 
			
		||||
 | 
			
		||||
		<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
 | 
			
		||||
			Created by <a
 | 
			
		||||
			{$i18n.t('Created by')}
 | 
			
		||||
			<a
 | 
			
		||||
				class=" text-gray-500 dark:text-gray-300 font-medium"
 | 
			
		||||
				href="https://github.com/tjbck"
 | 
			
		||||
				target="_blank">Timothy J. Baek</a
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -280,7 +280,7 @@
 | 
			
		|||
				}
 | 
			
		||||
			}}
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
		</button>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -149,7 +149,7 @@
 | 
			
		|||
				dispatch('save');
 | 
			
		||||
			}}
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
		</button>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -262,7 +262,7 @@
 | 
			
		|||
			class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded"
 | 
			
		||||
			type="submit"
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
		</button>
 | 
			
		||||
	</div>
 | 
			
		||||
</form>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -154,7 +154,7 @@
 | 
			
		|||
			</div>
 | 
			
		||||
 | 
			
		||||
			<div class="text-xs text-left w-full font-medium mt-0.5">
 | 
			
		||||
				This setting does not sync across browsers or devices.
 | 
			
		||||
				{$i18n.t('This setting does not sync across browsers or devices.')}
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -148,13 +148,13 @@
 | 
			
		|||
			</div>
 | 
			
		||||
 | 
			
		||||
			<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
 | 
			
		||||
				Trouble accessing Ollama?
 | 
			
		||||
				{$i18n.t('Trouble accessing Ollama?')}
 | 
			
		||||
				<a
 | 
			
		||||
					class=" text-gray-300 font-medium"
 | 
			
		||||
					href="https://github.com/open-webui/open-webui#troubleshooting"
 | 
			
		||||
					target="_blank"
 | 
			
		||||
				>
 | 
			
		||||
					Click here for help.
 | 
			
		||||
					{$i18n.t('Click here for help')}
 | 
			
		||||
				</a>
 | 
			
		||||
			</div>
 | 
			
		||||
		</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -165,7 +165,7 @@
 | 
			
		|||
			class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded"
 | 
			
		||||
			type="submit"
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
		</button>
 | 
			
		||||
	</div>
 | 
			
		||||
</form>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -310,7 +310,7 @@
 | 
			
		|||
				dispatch('save');
 | 
			
		||||
			}}
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
		</button>
 | 
			
		||||
	</div>
 | 
			
		||||
</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -177,13 +177,14 @@
 | 
			
		|||
		</div>
 | 
			
		||||
 | 
			
		||||
		<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
 | 
			
		||||
			Include `--api` flag when running stable-diffusion-webui
 | 
			
		||||
			{$i18n.t('Include `--api` flag when running stable-diffusion-webui')}
 | 
			
		||||
			<a
 | 
			
		||||
				class=" text-gray-300 font-medium"
 | 
			
		||||
				class=" text-gray-300 font-medium underline"
 | 
			
		||||
				href="https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/3734"
 | 
			
		||||
				target="_blank"
 | 
			
		||||
			>
 | 
			
		||||
				(e.g. `sh webui.sh --api`)
 | 
			
		||||
				<br />
 | 
			
		||||
				{$i18n.t('(e.g. `sh webui.sh --api`)')}
 | 
			
		||||
			</a>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -248,7 +249,7 @@
 | 
			
		|||
			type="submit"
 | 
			
		||||
			disabled={loading}
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
 | 
			
		||||
			{#if loading}
 | 
			
		||||
				<div class="ml-2 self-center">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -317,7 +317,7 @@
 | 
			
		|||
 | 
			
		||||
				{#if promptSuggestions.length > 0}
 | 
			
		||||
					<div class="text-xs text-left w-full mt-2">
 | 
			
		||||
						Adjusting these settings will apply changes universally to all users.
 | 
			
		||||
						{$i18n.t('Adjusting these settings will apply changes universally to all users.')}
 | 
			
		||||
					</div>
 | 
			
		||||
				{/if}
 | 
			
		||||
			</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -329,7 +329,7 @@
 | 
			
		|||
			class=" px-4 py-2 bg-emerald-600 hover:bg-emerald-700 text-gray-100 transition rounded"
 | 
			
		||||
			type="submit"
 | 
			
		||||
		>
 | 
			
		||||
			Save
 | 
			
		||||
			{$i18n.t('Save')}
 | 
			
		||||
		</button>
 | 
			
		||||
	</div>
 | 
			
		||||
</form>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -84,10 +84,12 @@
 | 
			
		|||
				if (!data.success) {
 | 
			
		||||
					toast.error(data.error);
 | 
			
		||||
				} else {
 | 
			
		||||
					toast.success($i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, {modelName}));
 | 
			
		||||
					toast.success(
 | 
			
		||||
						$i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, { modelName })
 | 
			
		||||
					);
 | 
			
		||||
 | 
			
		||||
					const notification = new Notification($WEBUI_NAME, {
 | 
			
		||||
						body: $i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, {modelName}),
 | 
			
		||||
						body: $i18n.t(`Model '{{modelName}}' has been successfully downloaded.`, { modelName }),
 | 
			
		||||
						icon: `${WEBUI_BASE_URL}/static/favicon.png`
 | 
			
		||||
					});
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -249,7 +251,7 @@
 | 
			
		|||
		});
 | 
			
		||||
 | 
			
		||||
		if (res) {
 | 
			
		||||
			toast.success($i18n.t(`Deleted {{deleteModelTag}}`, {deleteModelTag}));
 | 
			
		||||
			toast.success($i18n.t(`Deleted {{deleteModelTag}}`, { deleteModelTag }));
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		deleteModelTag = '';
 | 
			
		||||
| 
						 | 
				
			
			@ -376,7 +378,7 @@
 | 
			
		|||
		{#if ollamaVersion}
 | 
			
		||||
			<div class="space-y-2 pr-1.5">
 | 
			
		||||
				<div>
 | 
			
		||||
					<div class=" mb-2 text-sm font-medium">Manage Ollama Models</div>
 | 
			
		||||
					<div class=" mb-2 text-sm font-medium">{$i18n.t('Manage Ollama Models')}</div>
 | 
			
		||||
 | 
			
		||||
					<div class=" mb-2 text-sm font-medium">{$i18n.t('Pull a model from Ollama.com')}</div>
 | 
			
		||||
					<div class="flex w-full">
 | 
			
		||||
| 
						 | 
				
			
			@ -439,7 +441,8 @@
 | 
			
		|||
					</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">{$i18n.t('click here.')}</a
 | 
			
		||||
| 
						 | 
				
			
			@ -515,7 +518,7 @@
 | 
			
		|||
							type="button"
 | 
			
		||||
							on:click={() => {
 | 
			
		||||
								showExperimentalOllama = !showExperimentalOllama;
 | 
			
		||||
							}}>{showExperimentalOllama ? 'Show' : 'Hide'}</button
 | 
			
		||||
							}}>{showExperimentalOllama ? $i18n.t('Show') : $i18n.t('Hide')}</button
 | 
			
		||||
						>
 | 
			
		||||
					</div>
 | 
			
		||||
				</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -701,7 +704,7 @@
 | 
			
		|||
								type="button"
 | 
			
		||||
								on:click={() => {
 | 
			
		||||
									showLiteLLMParams = !showLiteLLMParams;
 | 
			
		||||
								}}>{showLiteLLMParams ? 'Advanced' : 'Default'}</button
 | 
			
		||||
								}}>{showLiteLLMParams ? $i18n.t('Advanced') : $i18n.t('Default')}</button
 | 
			
		||||
							>
 | 
			
		||||
						</div>
 | 
			
		||||
					</div>
 | 
			
		||||
| 
						 | 
				
			
			@ -796,13 +799,13 @@
 | 
			
		|||
					</div>
 | 
			
		||||
 | 
			
		||||
					<div class="mb-2 text-xs text-gray-400 dark:text-gray-500">
 | 
			
		||||
						Not sure what to add?
 | 
			
		||||
						{$i18n.t('Not sure what to add?')}
 | 
			
		||||
						<a
 | 
			
		||||
							class=" text-gray-300 font-medium underline"
 | 
			
		||||
							href="https://litellm.vercel.app/docs/proxy/configs#quick-start"
 | 
			
		||||
							target="_blank"
 | 
			
		||||
						>
 | 
			
		||||
							Click here for help.
 | 
			
		||||
							{$i18n.t('Click here for help')}
 | 
			
		||||
						</a>
 | 
			
		||||
					</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue