18 lines
478 B
Svelte
18 lines
478 B
Svelte
<!--
|
|
Copyright: Ankitects Pty Ltd and contributors
|
|
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
-->
|
|
<script lang="typescript">
|
|
import useAsync from "sveltelib/async";
|
|
import { setupI18n } from "anki/i18n";
|
|
import { checkNightMode } from "anki/nightmode";
|
|
|
|
const nightMode = checkNightMode();
|
|
|
|
const { loading, value: i18n } = useAsync(() => setupI18n());
|
|
</script>
|
|
|
|
{#if !$loading}
|
|
<slot i18n={$i18n} {nightMode} />
|
|
{/if}
|