feat: install svelte-18n and init setup

This commit is contained in:
Restray
2022-04-01 22:50:55 +02:00
parent 986c5b7133
commit 741db1778b
7 changed files with 525 additions and 375 deletions

View File

@@ -12,6 +12,7 @@
</script>
<script>
import { _ } from 'svelte-i18n';
export let status;
export let error;
</script>
@@ -20,7 +21,8 @@
<div class="pb-10 text-7xl font-bold">{status}</div>
<div class="text-3xl font-bold">Ooops you are lost! But don't be afraid!</div>
<div class="text-xl">
You can find your way back <a href="/" class="font-bold uppercase text-sky-400">here</a>
{$_('error.you_can_find_your_way_back')}
<a href="/" class="font-bold uppercase text-sky-400">{$_('error.here')}</a>
</div>
<div class="py-10 text-xs font-bold">
<pre