i18n: add missing translations

This commit is contained in:
Peter Dave Hello
2025-08-20 22:14:23 +08:00
parent 7452b87877
commit 45180e829a
82 changed files with 1417 additions and 99 deletions
+1 -1
View File
@@ -872,7 +872,7 @@
: `${WEBUI_BASE_URL}/static/favicon.png`)}
/>
<div class="translate-y-[0.5px]">
Talking to <span class=" font-medium">{atSelectedModel.name}</span>
{$i18n.t('Talk to model')}: <span class=" font-medium">{atSelectedModel.name}</span>
</div>
</div>
<div>
@@ -388,7 +388,7 @@
>
<div class="flex flex-col">
<div class="line-clamp-1">{$i18n.t('Microsoft OneDrive (work/school)')}</div>
<div class="text-xs text-gray-500">Includes SharePoint</div>
<div class="text-xs text-gray-500">{$i18n.t('Includes SharePoint')}</div>
</div>
</DropdownMenu.Item>
</DropdownMenu.SubContent>
+1 -1
View File
@@ -416,7 +416,7 @@
>
<div class="w-full flex justify-center py-1 text-xs animate-pulse items-center gap-2">
<Spinner className=" size-4" />
<div class=" ">Loading...</div>
<div class=" ">{$i18n.t('Loading...')}</div>
</div>
</Loader>
{/if}
@@ -548,13 +548,13 @@
>
{#if executing}
<div class=" ">
<div class=" text-gray-500 text-xs mb-1">STDOUT/STDERR</div>
<div class="text-sm">Running...</div>
<div class=" text-gray-500 text-xs mb-1">{$i18n.t('STDOUT/STDERR')}</div>
<div class="text-sm">{$i18n.t('Running...')}</div>
</div>
{:else}
{#if stdout || stderr}
<div class=" ">
<div class=" text-gray-500 text-xs mb-1">STDOUT/STDERR</div>
<div class=" text-gray-500 text-xs mb-1">{$i18n.t('STDOUT/STDERR')}</div>
<div
class="text-sm {stdout?.split('\n')?.length > 100
? `max-h-96`
@@ -566,7 +566,7 @@
{/if}
{#if result || files}
<div class=" ">
<div class=" text-gray-500 text-xs mb-1">RESULT</div>
<div class=" text-gray-500 text-xs mb-1">{$i18n.t('RESULT')}</div>
{#if result}
<div class="text-sm">{`${JSON.stringify(result)}`}</div>
{/if}
@@ -1102,7 +1102,7 @@
{#if (params?.use_mmap ?? null) !== null}
<div class="flex justify-between items-center mt-1">
<div class="text-xs text-gray-500">
{params.use_mmap ? 'Enabled' : 'Disabled'}
{params.use_mmap ? $i18n.t('Enabled') : $i18n.t('Disabled')}
</div>
<div class=" pr-2">
<Switch bind:state={params.use_mmap} />
@@ -1143,7 +1143,7 @@
{#if (params?.use_mlock ?? null) !== null}
<div class="flex justify-between items-center mt-1">
<div class="text-xs text-gray-500">
{params.use_mlock ? 'Enabled' : 'Disabled'}
{params.use_mlock ? $i18n.t('Enabled') : $i18n.t('Disabled')}
</div>
<div class=" pr-2">
@@ -263,7 +263,7 @@
bind:value={TTSEngineConfig.dtype}
placeholder={$i18n.t('Select dtype')}
>
<option value="" disabled selected>Select dtype</option>
<option value="" disabled selected>{$i18n.t('Select dtype')}</option>
<option value="fp32">fp32</option>
<option value="fp16">fp16</option>
<option value="q8">q8</option>
@@ -55,7 +55,7 @@
>
<div>
<div class="text-xs flex items-center justify-between mb-2">
<div class="font-medium">Actions</div>
<div class="font-medium">{$i18n.t('Actions')}</div>
<div class="flex items-center gap-2 text-gray-700 dark:text-gray-300">
<button