misc: fix relative date component
This commit is contained in:
1 parent
125b453c96
commit
981c18e65f
7 files changed
+40
-2
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user