refac: i18n

This commit is contained in:
Timothy J. Baek 2024-10-05 19:42:04 -07:00
parent ed5669410b
commit e0fc3e89a7

View File

@ -140,9 +140,7 @@
class="flex items-center justify-center gap-3 text-xl sm:text-2xl text-center font-semibold dark:text-gray-200"
>
<div>
{$i18n.t('Signing in')}
{$i18n.t('to')}
{$WEBUI_NAME}
{$i18n.t('Signing in to {{WEBUI_NAME}}', { WEBUI_NAME: $WEBUI_NAME })}
</div>
<div>
@ -160,9 +158,11 @@
>
<div class="mb-1">
<div class=" text-2xl font-medium">
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Sign up')}
{$i18n.t('to')}
{$WEBUI_NAME}
{#if mode === 'signin'}
{$i18n.t(`Sign in to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })}
{:else}
{$i18n.t(`Sign up to {{WEBUI_NAME}}`, { WEBUI_NAME: $WEBUI_NAME })}
{/if}
</div>
{#if mode === 'signup'}