add locales

This commit is contained in:
2022-01-16 14:39:45 +01:00
parent 539d99d35f
commit 824603ff4a
7 changed files with 197 additions and 55 deletions

View File

@@ -34,7 +34,6 @@
<script lang="ts">
import Icon from '$lib/ui/Icon.svelte'
import { t } from 'svelte-intl-precompile'
function change() {
theme.update((current) => NextTheme[current])
@@ -43,7 +42,7 @@
<div on:click={change}>
<Icon class="icon" icon="contrast-sharp" />
{$t('theme.' + $theme)}
{$theme}
</div>
<style>

View File

@@ -1,16 +1,13 @@
<script lang="ts">
import ThemeToggle from '$lib/ui/ThemeToggle.svelte'
import { t } from 'svelte-intl-precompile'
</script>
<footer>
<ThemeToggle />
<nav>
<a href="/">/{$t('nav.home')}</a>
<a href="/about">/{$t('nav.about')}</a>
<a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener"
>/{$t('nav.code')}</a
>
<a href="/">/home</a>
<a href="/about">/about</a>
<a href="https://github.com/cupcakearmy/cryptgeon" target="_blank" rel="noopener">/code</a>
</nav>
</footer>