From e0fc3e89a744b449e599d579619a7064dea72013 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 5 Oct 2024 19:42:04 -0700 Subject: [PATCH] refac: i18n --- src/routes/auth/+page.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index f13ec42b0..f6ba932b9 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -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" >
- {$i18n.t('Signing in')} - {$i18n.t('to')} - {$WEBUI_NAME} + {$i18n.t('Signing in to {{WEBUI_NAME}}', { WEBUI_NAME: $WEBUI_NAME })}
@@ -160,9 +158,11 @@ >
- {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}
{#if mode === 'signup'}