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>