forked from open-webui/open-webui
		
	feat: Change translation keys to fallback strings
This commit is contained in:
		
							parent
							
								
									fab89a76b1
								
							
						
					
					
						commit
						7a77f3c2c0
					
				
					 12 changed files with 136 additions and 42 deletions
				
			
		|  | @ -671,8 +671,8 @@ | |||
| 							placeholder={chatInputPlaceholder !== '' | ||||
| 								? chatInputPlaceholder | ||||
| 								: isRecording | ||||
| 								? $i18n.t('ChatInputPlaceholderListening') | ||||
| 								: $i18n.t('ChatInputPlaceholder')} | ||||
| 								? $i18n.t('Listening...') | ||||
| 								: $i18n.t('Send a Messsage')} | ||||
| 							bind:value={prompt} | ||||
| 							on:keypress={(e) => { | ||||
| 								if (e.keyCode == 13 && !e.shiftKey) { | ||||
|  |  | |||
|  | @ -66,9 +66,9 @@ | |||
| 					</div> | ||||
| 				{/if} | ||||
| 			{:else} | ||||
| 				<div class=" line-clamp-1">{$i18n.t('Hello', { name: $user.name })}</div> | ||||
| 				<div class=" line-clamp-1">{$i18n.t('Hello, {{name}}', { name: $user.name })}</div> | ||||
| 
 | ||||
| 				<div>{$i18n.t('GreetingPlaceholder')}</div> | ||||
| 				<div>{$i18n.t('How can I help you today?')}</div> | ||||
| 			{/if} | ||||
| 		</div> | ||||
| 	</div> | ||||
|  |  | |||
|  | @ -42,7 +42,7 @@ | |||
| 				{disabled} | ||||
| 			> | ||||
| 				<option class=" text-gray-700" value="" selected disabled | ||||
| 					>{$i18n.t('ModelSelectorPlaceholder')}</option | ||||
| 					>{$i18n.t('Select a model')}</option | ||||
| 				> | ||||
| 
 | ||||
| 				{#each $models as model} | ||||
|  | @ -137,5 +137,5 @@ | |||
| </div> | ||||
| 
 | ||||
| <div class="text-left mt-1.5 text-xs text-gray-500"> | ||||
| 	<button on:click={saveDefaultModel}> {$i18n.t('SetAsDefault')}</button> | ||||
| 	<button on:click={saveDefaultModel}> {$i18n.t('Set as default')}</button> | ||||
| </div> | ||||
|  |  | |||
|  | @ -195,10 +195,10 @@ | |||
| 						<select | ||||
| 							class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none" | ||||
| 							bind:value={selectedModel} | ||||
| 							placeholder={$i18n.t('ModelSelectorPlaceholder')} | ||||
| 							placeholder={$i18n.t('Select a Model')} | ||||
| 						> | ||||
| 							{#if !selectedModel} | ||||
| 								<option value="" disabled selected>{$i18n.t('ModelSelectorPlaceholder')}</option> | ||||
| 								<option value="" disabled selected>{$i18n.t('Select a Model')}</option> | ||||
| 							{/if} | ||||
| 							{#each models ?? [] as model} | ||||
| 								<option value={model.title} class="bg-gray-100 dark:bg-gray-700" | ||||
|  |  | |||
|  | @ -190,7 +190,7 @@ | |||
| 					<select | ||||
| 						class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none" | ||||
| 						bind:value={titleAutoGenerateModel} | ||||
| 						placeholder={$i18n.t('ModelSelectorPlaceholder')} | ||||
| 						placeholder={$i18n.t('Select a Model')} | ||||
| 					> | ||||
| 						<option value="" selected>Current Model</option> | ||||
| 						{#each $models as model} | ||||
|  |  | |||
|  | @ -467,10 +467,10 @@ | |||
| 							<select | ||||
| 								class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none" | ||||
| 								bind:value={deleteModelTag} | ||||
| 								placeholder={$i18n.t('ModelSelectorPlaceholder')} | ||||
| 								placeholder={$i18n.t('Select a model')} | ||||
| 							> | ||||
| 								{#if !deleteModelTag} | ||||
| 									<option value="" disabled selected>{$i18n.t('ModelSelectorPlaceholder')}</option> | ||||
| 									<option value="" disabled selected>{$i18n.t('Select a model')}</option> | ||||
| 								{/if} | ||||
| 								{#each $models.filter((m) => m.size != null) as model} | ||||
| 									<option value={model.name} class="bg-gray-100 dark:bg-gray-700" | ||||
|  | @ -807,10 +807,10 @@ | |||
| 								<select | ||||
| 									class="w-full rounded py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none" | ||||
| 									bind:value={deleteLiteLLMModelId} | ||||
| 									placeholder={$i18n.t('ModelSelectorPlaceholder')} | ||||
| 									placeholder={$i18n.t('Select a model')} | ||||
| 								> | ||||
| 									{#if !deleteLiteLLMModelId} | ||||
| 										<option value="" disabled selected>{$i18n.t('ModelSelectorPlaceholder')}</option | ||||
| 										<option value="" disabled selected>{$i18n.t('Select a model')}</option | ||||
| 										> | ||||
| 									{/if} | ||||
| 									{#each liteLLMModelInfo as model} | ||||
|  |  | |||
|  | @ -128,7 +128,7 @@ | |||
| 						/> | ||||
| 					</div> | ||||
| 
 | ||||
| 					<div class=" self-center font-medium text-sm">{$i18n.t('NewChat')}</div> | ||||
| 					<div class=" self-center font-medium text-sm">{$i18n.t('New Chat')}</div> | ||||
| 				</div> | ||||
| 
 | ||||
| 				<div class="self-center"> | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| { | ||||
| 	"NewChat": "Neuer Chat", | ||||
| 	"New Chat": "Neuer Chat", | ||||
| 	"Modelfiles": "Modelfiles", | ||||
| 	"GreetingPlaceholder": "Wie kann ich dir heute behilflich sein?", | ||||
| 	"Hello": "Hallo, {{name}}", | ||||
| 	"ChatInputPlaceholderListening": "nimmt auf...", | ||||
| 	"ChatInputPlaceholder": "Sende eine Nachricht", | ||||
| 	"ModelSelectorPlaceholder": "Wähle ein Modell", | ||||
| 	"SetAsDefault": "Als Standard festlegen" | ||||
| 	"How can I help you today?": "Wie kann ich dir heute behilflich sein?", | ||||
| 	"Hello, {{name}}": "Hallo, {{name}}", | ||||
| 	"Listening...": "nimmt auf...", | ||||
| 	"Send a Message": "Sende eine Nachricht", | ||||
| 	"Select a model": "Wähle ein Modell", | ||||
| 	"Set as default": "Als Standard festlegen" | ||||
| } | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| { | ||||
| 	"NewChat": "New Chat", | ||||
| 	"New Chat": "New Chat", | ||||
| 	"Modelfiles": "Modelfiles", | ||||
| 	"GreetingPlaceholder": "How can I help you today?", | ||||
| 	"Hello": "Hello, {{name}}", | ||||
| 	"ChatInputPlaceholderListening": "Listening...", | ||||
| 	"ChatInputPlaceholder": "Send a Message", | ||||
| 	"ModelSelectorPlaceholder": "Select a model", | ||||
| 	"SetAsDefault": "Set as default" | ||||
| 	"How can I help you today?": "How can I help you today?", | ||||
| 	"Hello, {{name}}": "Hello, {{name}}", | ||||
| 	"Listenin...": "Listening...", | ||||
| 	"Send a Message": "Send a Message", | ||||
| 	"Select a model": "Select a model", | ||||
| 	"Set as default": "Set as default" | ||||
| } | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| { | ||||
| 	"NewChat": "چت جدید", | ||||
| 	"New Chat": "چت جدید", | ||||
| 	"Modelfiles": "فایلهای مدل", | ||||
| 	"GreetingPlaceholder": "امروز چطور می توانم کمک تان کنم؟", | ||||
| 	"Hello": "سلام، {{name}}", | ||||
| 	"ChatInputPlaceholderListening": "در حال گوش دادن...", | ||||
| 	"ChatInputPlaceholder": "یک پیام ارسال کنید", | ||||
| 	"ModelSelectorPlaceholder": "یک مدل انتخاب کنید", | ||||
| 	"SetAsDefault": "تنظیم به عنوان پیشفرض" | ||||
| 	"How can I help you today?": "امروز چطور می توانم کمک تان کنم؟", | ||||
| 	"Hello, {{name}}": "سلام، {{name}}", | ||||
| 	"Listening...": "در حال گوش دادن...", | ||||
| 	"Send a Message": "یک پیام ارسال کنید", | ||||
| 	"Select a model": "یک مدل انتخاب کنید", | ||||
| 	"Set as default": "تنظیم به عنوان پیشفرض" | ||||
| } | ||||
|  |  | |||
|  | @ -1,10 +1,10 @@ | |||
| { | ||||
| 	"NewChat": "New Chat", | ||||
| 	"New Chat": "New Chat", | ||||
| 	"Modelfiles": "Modelfiles", | ||||
| 	"GreetingPlaceholder": "How can I help you today?", | ||||
| 	"Hello": "Hello, {{name}}", | ||||
| 	"ChatInputPlaceholderListening": "Listening...", | ||||
| 	"ChatInputPlaceholder": "Send a Message", | ||||
| 	"ModelSelectorPlaceholder": "Select a model", | ||||
| 	"SetAsDefault": "Set as default" | ||||
| 	"How can I help you today?": "How can I help you today?", | ||||
| 	"Hello, {{name}}": "Hello, {{name}}", | ||||
| 	"Listening...": "Listening...", | ||||
| 	"Send a Message": "Send a Message", | ||||
| 	"Select a model": "Select a model", | ||||
| 	"Set as default": "Set as default" | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ased Mammad
						Ased Mammad