more translations

This commit is contained in:
Jannik Streidl 2024-03-04 09:53:56 +01:00
parent 304006aa8c
commit 3fe5f00114
24 changed files with 173 additions and 60 deletions

View file

@ -98,13 +98,17 @@
}}
>
<div class=" text-xl sm:text-2xl font-bold">
{mode === 'signin' ? 'Sign in' : 'Sign up'} to {$WEBUI_NAME}
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Sign up')}
{$i18n.t('to')}
{$WEBUI_NAME}
</div>
{#if mode === 'signup'}
<div class=" mt-1 text-xs font-medium text-gray-500">
{$WEBUI_NAME} does not make any external connections, and your data stays securely on
your locally hosted server.
{$WEBUI_NAME}
{$i18n.t(
'does not make any external connections, and your data stays securely on your locally hosted server.'
)}
</div>
{/if}
@ -117,7 +121,7 @@
type="text"
class=" border px-4 py-2.5 rounded-2xl w-full text-sm"
autocomplete="name"
placeholder="Enter Your Full Name"
placeholder={$i18n.t('Enter Your Full Name')}
required
/>
</div>
@ -132,7 +136,7 @@
type="email"
class=" border px-4 py-2.5 rounded-2xl w-full text-sm"
autocomplete="email"
placeholder="Enter Your Email"
placeholder={$i18n.t('Enter Your Email')}
required
/>
</div>
@ -143,7 +147,7 @@
bind:value={password}
type="password"
class=" border px-4 py-2.5 rounded-2xl w-full text-sm"
placeholder="Enter Your Password"
placeholder={$i18n.t('Enter Your Password')}
autocomplete="current-password"
required
/>
@ -155,11 +159,13 @@
class=" bg-gray-900 hover:bg-gray-800 w-full rounded-full text-white font-semibold text-sm py-3 transition"
type="submit"
>
{mode === 'signin' ? 'Sign In' : 'Create Account'}
{mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}
</button>
<div class=" mt-4 text-sm text-center">
{mode === 'signin' ? `Don't have an account?` : `Already have an account?`}
{mode === 'signin'
? $i18n.t("Don't have an account?")
: $i18n.t('Already have an account?')}
<button
class=" font-medium underline"
@ -172,7 +178,7 @@
}
}}
>
{mode === 'signin' ? `Sign up` : `Sign In`}
{mode === 'signin' ? $i18n.t('Sign up') : $i18n.t('Sign in')}
</button>
</div>
</div>