misc: fix relative date component

This commit is contained in:
Xyphyn committed 2023-07-29 19:53:31 -07:00
1 parent 125b453c96
commit 981c18e65f
7 files changed
+40 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { browser } from '$app/environment'
import { locale, waitLocale } from 'svelte-i18n'
export const load = async () => {
if (browser) {
locale.set(window.navigator.language)
}
await waitLocale()
}