mastered translations
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { loadTranslation } from './translations.svelte.js'
|
||||
let translations_ready = false;
|
||||
onMount(async () => {
|
||||
await loadTranslation('de','Login');
|
||||
translations_ready = true;
|
||||
});
|
||||
|
||||
import Homepage from "./Components/Homepage.svelte";
|
||||
import Login from "./Components/Login.svelte";
|
||||
import Menu from "./Components/Menu.svelte";
|
||||
</script>
|
||||
|
||||
{#if translations_ready}
|
||||
<Menu />
|
||||
<Homepage />
|
||||
<Login />
|
||||
<Login />
|
||||
{:else}
|
||||
<p>Loading translations...</p>
|
||||
{/if}
|
||||
Reference in New Issue
Block a user