feat: Change translation keys to fallback strings

This commit is contained in:
Ased Mammad 2024-03-02 14:42:33 +03:30
parent fab89a76b1
commit 7a77f3c2c0
12 changed files with 136 additions and 42 deletions

View file

@ -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}