mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-06 01:10:40 +00:00
add locales
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user