forked from btclock/webui
16 lines
383 B
TypeScript
16 lines
383 B
TypeScript
|
import "$lib/style/app.scss";
|
||
|
|
||
|
|
||
|
import { browser } from '$app/environment'
|
||
|
import '$lib/i18n' // Import to initialize. Important :)
|
||
|
import { locale, waitLocale } from 'svelte-i18n'
|
||
|
import type { LayoutLoad } from './$types'
|
||
|
|
||
|
export const load: LayoutLoad = async () => {
|
||
|
if (browser) {
|
||
|
locale.set(window.navigator.language)
|
||
|
}
|
||
|
await waitLocale()
|
||
|
}
|
||
|
|
||
|
export const prerender = true;
|