aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/+error.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/+error.svelte')
-rw-r--r--src/routes/+error.svelte6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte
index 2bacc8a6..d3b9306d 100644
--- a/src/routes/+error.svelte
+++ b/src/routes/+error.svelte
@@ -1,7 +1,7 @@
<script>
import { page } from '$app/stores';
import { Icon, PageNotFound } from '$comp';
- import { _ } from 'svelte-i18n';
+ import { t } from '$lib/translations';
</script>
{#if $page.error.message.includes('not found') || $page.status === 404}
@@ -15,9 +15,9 @@
<Icon icon="error" style="mx-auto w-56" />
- <h1 class="font-bold text-5xl">{($_('error.header'), { default: 'Error' })}</h1>
+ <h1 class="font-bold text-5xl">{($t('error.header'), { default: 'Error' })}</h1>
<p class="px-1 w-full md:w-96 break-all font-bold">{$page.error.message.toUpperCase()}</p>
- <p>{($_('error.message'), { default: 'Please try again or contact support.' })}</p>
+ <p>{($t('error.message'), { default: 'Please try again or contact support.' })}</p>
</div>
</div>
{/if}