Commit 3fe5f001 authored by Jannik Streidl's avatar Jannik Streidl
Browse files

more translations

parent 304006aa
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<div class=" flex flex-col justify-center"> <div class=" flex flex-col justify-center">
<div class=" flex justify-between items-center"> <div class=" flex justify-between items-center">
<div class="flex items-center text-2xl font-semibold"> <div class="flex items-center text-2xl font-semibold">
All Users {$i18n.t('All Users')}
<div class="flex self-center w-[1px] h-6 mx-2.5 bg-gray-200 dark:bg-gray-700" /> <div class="flex self-center w-[1px] h-6 mx-2.5 bg-gray-200 dark:bg-gray-700" />
<span class="text-lg font-medium text-gray-500 dark:text-gray-300" <span class="text-lg font-medium text-gray-500 dark:text-gray-300"
>{users.length}</span >{users.length}</span
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
</div> </div>
</div> </div>
<div class=" text-gray-500 text-xs mt-1"> <div class=" text-gray-500 text-xs mt-1">
ⓘ Click on the user role button to change a user's role. {$i18n.t("Click on the user role button to change a user's role.")}
</div> </div>
<hr class=" my-3 dark:border-gray-600" /> <hr class=" my-3 dark:border-gray-600" />
......
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
</div> </div>
</div> </div>
<div class=" text-gray-500 text-xs mt-1"> <div class=" text-gray-500 text-xs mt-1">
ⓘ Use '#' in the prompt input to load and select your documents. {$i18n.t("Use '#' in the prompt input to load and select your documents.")}
</div> </div>
</div> </div>
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
<input <input
class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-none bg-transparent" class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-none bg-transparent"
bind:value={query} bind:value={query}
placeholder="Search Document" placeholder={$i18n.t('Search Documents')}
/> />
</div> </div>
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<input <input
class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-none bg-transparent" class=" w-full text-sm pr-4 py-1 rounded-r-xl outline-none bg-transparent"
bind:value={query} bind:value={query}
placeholder="Search Prompt" placeholder={$i18n.t('Search Prompts')}
/> />
</div> </div>
......
...@@ -98,13 +98,17 @@ ...@@ -98,13 +98,17 @@
}} }}
> >
<div class=" text-xl sm:text-2xl font-bold"> <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> </div>
{#if mode === 'signup'} {#if mode === 'signup'}
<div class=" mt-1 text-xs font-medium text-gray-500"> <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 ⓘ {$WEBUI_NAME}
your locally hosted server. {$i18n.t(
'does not make any external connections, and your data stays securely on your locally hosted server.'
)}
</div> </div>
{/if} {/if}
...@@ -117,7 +121,7 @@ ...@@ -117,7 +121,7 @@
type="text" type="text"
class=" border px-4 py-2.5 rounded-2xl w-full text-sm" class=" border px-4 py-2.5 rounded-2xl w-full text-sm"
autocomplete="name" autocomplete="name"
placeholder="Enter Your Full Name" placeholder={$i18n.t('Enter Your Full Name')}
required required
/> />
</div> </div>
...@@ -132,7 +136,7 @@ ...@@ -132,7 +136,7 @@
type="email" type="email"
class=" border px-4 py-2.5 rounded-2xl w-full text-sm" class=" border px-4 py-2.5 rounded-2xl w-full text-sm"
autocomplete="email" autocomplete="email"
placeholder="Enter Your Email" placeholder={$i18n.t('Enter Your Email')}
required required
/> />
</div> </div>
...@@ -143,7 +147,7 @@ ...@@ -143,7 +147,7 @@
bind:value={password} bind:value={password}
type="password" type="password"
class=" border px-4 py-2.5 rounded-2xl w-full text-sm" 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" autocomplete="current-password"
required required
/> />
...@@ -155,11 +159,13 @@ ...@@ -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" class=" bg-gray-900 hover:bg-gray-800 w-full rounded-full text-white font-semibold text-sm py-3 transition"
type="submit" type="submit"
> >
{mode === 'signin' ? 'Sign In' : 'Create Account'} {mode === 'signin' ? $i18n.t('Sign in') : $i18n.t('Create Account')}
</button> </button>
<div class=" mt-4 text-sm text-center"> <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 <button
class=" font-medium underline" class=" font-medium underline"
...@@ -172,7 +178,7 @@ ...@@ -172,7 +178,7 @@
} }
}} }}
> >
{mode === 'signin' ? `Sign up` : `Sign In`} {mode === 'signin' ? $i18n.t('Sign up') : $i18n.t('Sign in')}
</button> </button>
</div> </div>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment