forked from open-webui/open-webui
		
	added missing translation keys
This commit is contained in:
		
							parent
							
								
									dbdc602791
								
							
						
					
					
						commit
						ccc1c81256
					
				
					 9 changed files with 382 additions and 367 deletions
				
			
		| 
						 | 
				
			
			@ -45,7 +45,8 @@
 | 
			
		|||
		<div>
 | 
			
		||||
			<div class=" mb-2.5 text-sm font-medium flex space-x-2 items-center">
 | 
			
		||||
				<div>
 | 
			
		||||
					{$WEBUI_NAME} Version
 | 
			
		||||
					{$WEBUI_NAME}
 | 
			
		||||
					{$i18n.t('Version')}
 | 
			
		||||
				</div>
 | 
			
		||||
			</div>
 | 
			
		||||
			<div class="flex w-full justify-between items-center">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -49,7 +49,7 @@
 | 
			
		|||
			type="button"
 | 
			
		||||
			on:click={() => {
 | 
			
		||||
				show = !show;
 | 
			
		||||
			}}>{show ? 'Hide' : 'Show'}</button
 | 
			
		||||
			}}>{show ? $i18n.t('Hide') : $i18n.t('Show')}</button
 | 
			
		||||
		>
 | 
			
		||||
	</div>
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -102,7 +102,7 @@
 | 
			
		|||
			<button
 | 
			
		||||
				class=" px-4 py-2 text-xs bg-gray-800 hover:bg-gray-900 dark:bg-gray-700 dark:hover:bg-gray-800 text-gray-100 transition rounded-md font-medium"
 | 
			
		||||
			>
 | 
			
		||||
				Update password
 | 
			
		||||
				{$i18n.t('Update password')}
 | 
			
		||||
			</button>
 | 
			
		||||
		</div>
 | 
			
		||||
	{/if}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -145,7 +145,8 @@
 | 
			
		|||
								</div>
 | 
			
		||||
							</div>
 | 
			
		||||
							<div class=" mb-1 text-xs text-gray-400 dark:text-gray-500">
 | 
			
		||||
								WebUI will make requests to <span class=" text-gray-200">'{url}/models'</span>
 | 
			
		||||
								{$i18n.t('WebUI will make requests to')}
 | 
			
		||||
								<span class=" text-gray-200">'{url}/models'</span>
 | 
			
		||||
							</div>
 | 
			
		||||
						{/each}
 | 
			
		||||
					</div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -329,7 +329,7 @@
 | 
			
		|||
						{getModels}
 | 
			
		||||
						{saveSettings}
 | 
			
		||||
						on:save={() => {
 | 
			
		||||
							toast.success('Settings saved successfully!');
 | 
			
		||||
							toast.success($i18n.t('Settings saved successfully!'));
 | 
			
		||||
						}}
 | 
			
		||||
					/>
 | 
			
		||||
				{:else if selectedTab === 'models'}
 | 
			
		||||
| 
						 | 
				
			
			@ -338,28 +338,28 @@
 | 
			
		|||
					<Connections
 | 
			
		||||
						{getModels}
 | 
			
		||||
						on:save={() => {
 | 
			
		||||
							toast.success('Settings saved successfully!');
 | 
			
		||||
							toast.success($i18n.t('Settings saved successfully!'));
 | 
			
		||||
						}}
 | 
			
		||||
					/>
 | 
			
		||||
				{:else if selectedTab === 'interface'}
 | 
			
		||||
					<Interface
 | 
			
		||||
						{saveSettings}
 | 
			
		||||
						on:save={() => {
 | 
			
		||||
							toast.success('Settings saved successfully!');
 | 
			
		||||
							toast.success($i18n.t('Settings saved successfully!'));
 | 
			
		||||
						}}
 | 
			
		||||
					/>
 | 
			
		||||
				{:else if selectedTab === 'audio'}
 | 
			
		||||
					<Audio
 | 
			
		||||
						{saveSettings}
 | 
			
		||||
						on:save={() => {
 | 
			
		||||
							toast.success('Settings saved successfully!');
 | 
			
		||||
							toast.success($i18n.t('Settings saved successfully!'));
 | 
			
		||||
						}}
 | 
			
		||||
					/>
 | 
			
		||||
				{:else if selectedTab === 'images'}
 | 
			
		||||
					<Images
 | 
			
		||||
						{saveSettings}
 | 
			
		||||
						on:save={() => {
 | 
			
		||||
							toast.success('Settings saved successfully!');
 | 
			
		||||
							toast.success($i18n.t('Settings saved successfully!'));
 | 
			
		||||
						}}
 | 
			
		||||
					/>
 | 
			
		||||
				{:else if selectedTab === 'chats'}
 | 
			
		||||
| 
						 | 
				
			
			@ -367,7 +367,7 @@
 | 
			
		|||
				{:else if selectedTab === 'account'}
 | 
			
		||||
					<Account
 | 
			
		||||
						saveHandler={() => {
 | 
			
		||||
							toast.success('Settings saved successfully!');
 | 
			
		||||
							toast.success($i18n.t('Settings saved successfully!'));
 | 
			
		||||
						}}
 | 
			
		||||
					/>
 | 
			
		||||
				{:else if selectedTab === 'about'}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,9 @@
 | 
			
		|||
<script lang="ts">
 | 
			
		||||
	import { createEventDispatcher } from 'svelte';
 | 
			
		||||
	import { createEventDispatcher, getContext } from 'svelte';
 | 
			
		||||
	const dispatch = createEventDispatcher();
 | 
			
		||||
 | 
			
		||||
	const i18n = getContext('i18n');
 | 
			
		||||
 | 
			
		||||
	let showTagInput = false;
 | 
			
		||||
	let tagName = '';
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			@ -9,12 +11,6 @@
 | 
			
		|||
<div class="flex space-x-1 pl-1.5">
 | 
			
		||||
	{#if showTagInput}
 | 
			
		||||
		<div class="flex items-center">
 | 
			
		||||
			<input
 | 
			
		||||
				bind:value={tagName}
 | 
			
		||||
				class=" cursor-pointer self-center text-xs h-fit bg-transparent outline-none line-clamp-1 w-[4rem]"
 | 
			
		||||
				placeholder="Add a tag"
 | 
			
		||||
			/>
 | 
			
		||||
 | 
			
		||||
			<button
 | 
			
		||||
				type="button"
 | 
			
		||||
				on:click={() => {
 | 
			
		||||
| 
						 | 
				
			
			@ -36,6 +32,11 @@
 | 
			
		|||
					/>
 | 
			
		||||
				</svg>
 | 
			
		||||
			</button>
 | 
			
		||||
			<input
 | 
			
		||||
				bind:value={tagName}
 | 
			
		||||
				class=" pl-2 cursor-pointer self-center text-xs h-fit bg-transparent outline-none line-clamp-1 w-[8rem]"
 | 
			
		||||
				placeholder={$i18n.t('Add a tag')}
 | 
			
		||||
			/>
 | 
			
		||||
		</div>
 | 
			
		||||
 | 
			
		||||
		<!-- TODO: Tag Suggestions -->
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue