i18n: localize verify email page
This commit is contained in:
1 parent
0cad34651b
commit
53d4e4bfa3
3 files changed
+16
-4
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import { page } from '$app/stores'
|
||||
import { t } from '$lib/translations'
|
||||
import { XMark, Icon } from 'svelte-hero-icons'
|
||||
</script>
|
||||
|
||||
@@ -9,7 +10,9 @@
|
||||
>
|
||||
<Icon src={XMark} size="32" mini />
|
||||
</div>
|
||||
<h1 class="text-red-800 dark:text-red-300 text-2xl font-semibold">Error</h1>
|
||||
<p class="text-red-800 dark:text-red-300">Failed to verify your email.</p>
|
||||
<h1 class="text-red-800 dark:text-red-300 text-2xl font-semibold">
|
||||
{$t('message.error')}
|
||||
</h1>
|
||||
<p class="text-red-800 dark:text-red-300">{$t('routes.verifyEmail.error')}</p>
|
||||
<code>{$page.error?.message}</code>
|
||||
</div>
|
||||
@@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import { LINKED_INSTANCE_URL } from '$lib/instance'
|
||||
import { t } from '$lib/translations'
|
||||
import { Check, Icon } from 'svelte-hero-icons'
|
||||
</script>
|
||||
|
||||
@@ -10,10 +11,10 @@
|
||||
<Icon src={Check} size="32" mini />
|
||||
</div>
|
||||
<h1 class="text-green-800 dark:text-green-200 text-2xl font-semibold">
|
||||
Success
|
||||
{$t('message.success')}
|
||||
</h1>
|
||||
<p class="text-green-800 dark:text-green-200">
|
||||
Your email was verified. You can safely close this window.
|
||||
{$t('routes.verifyEmail.message')}
|
||||
</p>
|
||||
{#if !LINKED_INSTANCE_URL}
|
||||
<p>
|
||||
|
||||
Reference in new issue
Block a user